Varying Rating Classifications?

Any questions? Need some help?
Post Reply
User avatar
Ithiel
Power² User
Posts: 204
Joined: 11 Jul 2013, 14:58

Varying Rating Classifications?

Post by Ithiel »

I'm having a rather unusual issues with the ratings on TV Shows..

Some times it detects as one thing, and then other times (as if at random) it detects with another rating..

eg:
Elementary (2012 PG-9)
Elementary (2012 TV-14)

Sherlock (2010 M)
Sherlock (2010 PG-13)

This is the scheme I'm using:
[url]https://github.com/CapriciousSage/schem ... ws.txt[url]

Any thoughts?
There can be only one Power² User
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Varying Rating Classifications?

Post by rednoah »

Isn't your format grabbing ratings from IMDb via OMDb and TheTVDB? The first time around it defaults to TheTVDB while later on IMDb is available so it doesn't default to TheTVDB any longer.

I guess you can't have both. I recommend using just TheTVDB.
:idea: Please read the FAQ and How to Request Help.
User avatar
Ithiel
Power² User
Posts: 204
Joined: 11 Jul 2013, 14:58

Re: Varying Rating Classifications?

Post by Ithiel »

this is the ratings code used for TV Shows, Movies, and Anime:

Code: Select all

{' '+any{imdb.certification}{certification}.replaceAll(/^\d+$/, 'PG-$0')}
The additional checks worked great at adding ratings to a boatload of new files, but its the fact that some of those ratings inexplicably change from week to week without any real consistency that throws me.
There can be only one Power² User
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Varying Rating Classifications?

Post by rednoah »

Week 1: imdb.certification not available, certification used instead
Week 2: imdb.certification available, thus used (might be different from the previous one from TheMovieDB/TheTVDB)

Not to mention that for new shows somebody could just change the rating in the TheMovieDB/TheTVDB. Also IMDb could change anytime, either by changing the value, or just by changing the site and making the scraper fail partially.
:idea: Please read the FAQ and How to Request Help.
User avatar
Ithiel
Power² User
Posts: 204
Joined: 11 Jul 2013, 14:58

Re: Varying Rating Classifications?

Post by Ithiel »

Fair 'nuff. What would be the best way to reverse it so it checks tmdb/ttvdb first, and then imdb second?

Would it just be as simple as:

Code: Select all

{' '+any{certification}{imdb.certification}.replaceAll(/^\d+$/, 'PG-$0')}
There can be only one Power² User
User avatar
rednoah
The Source
Posts: 22999
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Varying Rating Classifications?

Post by rednoah »

Yes. Try it. :D
:idea: Please read the FAQ and How to Request Help.
User avatar
Ithiel
Power² User
Posts: 204
Joined: 11 Jul 2013, 14:58

Re: Varying Rating Classifications?

Post by Ithiel »

Thanks - I've also updated the GitHub scheme :-)
There can be only one Power² User
Post Reply