Kodi Community Forum
[RELEASE] - Rating Update v1.4.3 - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] - Rating Update v1.4.3 (/showthread.php?tid=107331)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40


- m4x1m - 2011-08-10

Code:
v 1.0.2:
- Fix print log value for old position for Top250
- Fix crash that occurs when api site returns a Parse Error

Download:
script.ratingupdate-1.0.2.zip

@gabbott
Please test now, it skip the imdb id that cause error and you should be able to complete the procedure.

@All
Please be patient this is my first script Blush


- gabbott - 2011-08-10

m4x1m Wrote:
Code:
v 1.0.2:
- Fix print log value for old position for Top250
- Fix crash that occurs when api site returns a Parse Error

Download:
script.ratingupdate-1.0.2.zip

@gabbott
Please test now, it skip the imdb id that cause error and you should be able to complete the procedure.

@All
Please be patient this is my first script Blush

I'll give it a test as soon as my son finishes watching 'Bob the Builder' Laugh


- igitur - 2011-11-21

Does this script work with Dharma, and if so, how do I initiate it?


- igitur - 2011-11-21

igitur Wrote:Does this script work with Dharma, and if so, how do I initiate it?

Oh, my bad. 'Programs' was disabled under my skin settings. I found the plugin under it now.


- PatK - 2011-11-21

Tried V1.02 on pre-eden Nove 17th compile with Win7/64 and T!

It deleted 251 (top 250) rated films... and re-rated none. Thought Avatar was one of the top 250.. but I guess it got knocked off? I had trouble connecting while searching for 'Around the world in 80 days'. Multiple tries and it got through the database.. and added some to the 250 list this time. After checking some of the ratings it did do a good job in the end.

Worthwhile plugin, thanks.

Might suggest a user added amount of the time out, perhaps a scrape for MPAA rating (I have many blank) and how about specific directory path... so new adds could be scanned quickly.


- m4x1m - 2011-11-22

igitur Wrote:Does this script work with Dharma, and if so, how do I initiate it?

Fromt the first post:
Quote:Be careful
This is my first script and I tested it with latest nightly builds of XBMC. I don't know if it works with Dharma (different database reference?). Those who want to try it is welcome, but make a backup of the database before running it (pre-eden users valid too).



- m4x1m - 2011-11-22

PatK Wrote:Tried V1.02 on pre-eden Nove 17th compile with Win7/64 and T!

It deleted 251 (top 250) rated films... and re-rated none. Thought Avatar was one of the top 250.. but I guess it got knocked off? I had trouble connecting while searching for 'Around the world in 80 days'. Multiple tries and it got through the database.. and added some to the 250 list this time. After checking some of the ratings it did do a good job in the end.


Unfortunately I can't help you if the websites are slow! I'm searching an api site updated more often. You can check the two site on first post If you want to be sure what is done!

PatK Wrote:Worthwhile plugin, thanks.

LaughBig GrinWink

PatK Wrote:Might suggest a user added amount of the time out, perhaps a scrape for MPAA rating (I have many blank) and how about specific directory path... so new adds could be scanned quickly.

The api site http://www.imdbapi.com/?t=Around the World in 80 Days return only MPAA rating but not the reason, I can try to add it if it is sufficient but usually if IMDB don't put MPAA rating is because there isn't, check on IMDB the movies that you have MPAA rating blank!

Sorry for my english!


- PatrickBateman - 2011-11-22

Hey,

Just came across this and was wondering, can this be used over the top of my existing scraped data. I use the TMDB scraper and would like the imdb top 250 data added and to update my ratings etc.

Will this upset my current info or compliment it?


- m4x1m - 2011-11-22

PatrickBateman Wrote:Hey,

Just came across this and was wondering, can this be used over the top of my existing scraped data. I use the TMDB scraper and would like the imdb top 250 data added and to update my ratings etc.

Will this upset my current info or compliment it?

The search is done through the IMDB id (not by title) if in your database movies doesn't exist the IMDB id the script will not find any movie!Sad


- PatrickBateman - 2011-11-22

m4x1m Wrote:The search is done through the IMDB id (not by title) if in your database movies doesn't exist the IMDB id the script will not find any movie!Sad

Ahh, so as I've scraped using the default scraper this may not work for me Sad

That's a shame as this sounds like a great addition to xbmc as I'd love to have the Imdb top 250 and updated ratings etc.

Cheers though, I'll subscribe and follow this plugins development with great interest.

Pat~


- PatK - 2011-11-22

PatrickBateman Wrote:Ahh, so as I've scraped using the default scraper this may not work for me Sad

That's a shame as this sounds like a great addition to xbmc as I'd love to have the Imdb top 250 and updated ratings etc.

Cheers though, I'll subscribe and follow this plugins development with great interest.

Pat~

You may have a misunderstanding of what this plugin does.. It takes an existing database (it presumes you have already scraped) and updates the ratings etc... So it works in conjunction to your default scraper using the latest figures from IMdb and checks the top 250 and in my case changed quite a few... (look at the Top 250 page) http://www.imdb.com/chart/top
It keeps the ratings current.... In my case I had some ratings that were years old.... this plugin updated my whole collection in a few minutes without having to do a massive global scrape.

The real gold here... is when you create a smart playlist by ratings!


- PatrickBateman - 2011-11-22

PatK Wrote:You may have a misunderstanding of what this plugin does.. It takes an existing database (it presumes you have already scraped) and updates the ratings etc... So it works in conjunction to your default scraper using the latest figures from IMdb and checks the top 250 and in my case changed quite a few... (look at the Top 250 page) http://www.imdb.com/chart/top
It keeps the ratings current.... In my case I had some ratings that were years old.... this plugin updated my whole collection in a few minutes without having to do a massive global scrape.

The real gold here... is when you create a smart playlist by ratings!

Hey pat,
That's exactly what I thought it did, and im sure tht that's what I asked Laugh

But from what m4x1m said I thought he said it wouldn't play well as TMDB labels films differently from the imdb scraper. "Super" is an example of this...

One has it labelled as 2011 and the other as 2010 their are slight differences between the 2 scrapers so I thought he meant that the script won't play well if the data is incorrect/different or not their at all.

Cheers for clearing that up though Pat,

As for creating smart playlists, would it not be easier to just bring up the context menu in your library and change it from arrange by title/year and just change it to arrange by rating? Thats what I do Nod

I usually select a genre, arrange by rating and then watch from the lowest rated up to thr highest Laugh

Pat~


- m4x1m - 2011-11-22

I'll explain a little better!

The script load all IMDB ID thar are in your movies database then search in IMDB by ID (no title no year are involved) and upgrade only if necessary the ratings, the number of users who have voted and the TOP250 for example: "Super" in IMDB has this id code tt1512235, if you have scraped from TMDB the IMDB code doesn't exists (but I could also say nonsense, you should check if they actually recorded during the scrape from TMDBHuh) and the script fails because it doesn't load any IMDB ID. This method is used to prevent errors caused by similar titles, the IMDB ID is unique so it's hard to go wrong!

Anyway you can make a backup of the database and try!
The worst that can happen is that the script fails or the script don't find any movies!


- Martijn - 2011-11-22

@m4x1m

Confirmed and working with Eden-November 20 windows build Big Grin

EDIT:
Small bug Wink
One this is when after you have cancelled you get the question dialog if you want to start again.


- User 55003 - 2011-11-23

Hi m4x1m, nice script! Just updated the top250 and all the values are out by a factor of +1.
The Shawshank Redemption is rated as 2 instead of 1
Star Wars Episode IV: A New Hope is rated as 18 instead of 17 and so on.

Great idea though.
Cheers.

Log from dev PC, Win7-64..

Code:
14:34:22 T:3620  NOTICE: [Rating Update] - 'The Shawshank Redemption': old position in your db was 1.0, new position from api site is 2.0
14:34:23 T:3620  NOTICE: [Rating Update] - 'Star Wars: Episode V - The Empire Strikes Back': old position in your db was 11.0, new position from api site is 12.0
14:34:24 T:3620  NOTICE: [Rating Update] - 'Star Wars Episode IV - A New Hope': old position in your db was 17.0, new position from api site is 18.0
14:34:26 T:3620  NOTICE: [Rating Update] - 'Star Wars: Episode VI - Return of the Jedi': old position in your db was 98.0, new position from api site is 99.0
14:34:27 T:3620  NOTICE: [Rating Update] - 'Harry Potter and the Deathly Hallows: Part 2': old position in your db was 161.0, new position from api site is 185.0
14:34:28 T:3620  NOTICE: [Rating Update] - 'The Social Network': old position in your db was 226.0, new position from api site is 236.0