Page 1 of 1
Varying Rating Classifications?
Posted: 03 Jan 2014, 23:24
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?
Re: Varying Rating Classifications?
Posted: 04 Jan 2014, 07:13
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.
Re: Varying Rating Classifications?
Posted: 04 Jan 2014, 13:27
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.
Re: Varying Rating Classifications?
Posted: 04 Jan 2014, 13:46
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.
Re: Varying Rating Classifications?
Posted: 05 Jan 2014, 01:09
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')}
Re: Varying Rating Classifications?
Posted: 05 Jan 2014, 05:45
by rednoah
Yes. Try it.

Re: Varying Rating Classifications?
Posted: 05 Jan 2014, 22:28
by Ithiel
Thanks - I've also updated the GitHub scheme
