Kodi Community Forum

Full Version: [Release] IMDb Update (Movie Ratings + Top250 + MPAA) *Jarvis*
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
After editing addon.xml to bump release version :

Code:
    <requires>
        <import addon="xbmc.python" version="2.25.0"/>
        <import addon="xbmc.gui" version="5.12.0"/>
        <import addon="xbmc.addon" version="16.9.701"/>
    </requires>

I have run successfully this addon and update Top250 movies and ratings.

And as this addon use JSON query to update Top250 or rating :

resources\lib\movies.py :

Code:
util.executeJSON('VideoLibrary.SetMovieDetails', {'movieid': movie['movieid'], 'rating': float(imdb.rating()), 'votes': imdb.votes()})

resources\lib\top250.py
Code:
util.executeJSON('VideoLibrary.SetMovieDetails', {'movieid': movie['movieid'], 'top250': position})

It should make it Krypton compliant.
Also add some new ID label for translate settings windows and add French language (send PR on GITHUB).
@sualfred : you are right.

I have test upgrading rate from a fresh Kodi database with only one movie : Oblivion

After scrapping this movie with The Movie DB, rating table is filled :

Image

Then I run this addon :

Code:
16:20:59 T:8764  NOTICE: [IMDB Update] - Starting IMDB Update v0.8.10
16:21:01 T:8764  NOTICE: [IMDB Update] - [1] Oblivion: updated from 6.30000019073 (3475) to 7.0 (382.459)
16:21:01 T:8764  NOTICE: [IMDB Update] - Résumé des notes pour les films: 1 de 1 a été mis à jour!

But now table rating is empty :

Image

I have add some debug log and here is the JSON query for updating rate and votes :

Code:
17:02:33 T:572  NOTICE: [IMDB Update] - executeJSON : VideoLibrary.SetMovieDetails, params: {'rating': 7.0, 'votes': '382459', 'movieid': 1}
17:02:33 T:572  NOTICE: [IMDB Update] - result[jsonrpc] = 2.0
17:02:33 T:572  NOTICE: [IMDB Update] - result[id] = 1
17:02:33 T:572  NOTICE: [IMDB Update] - result[result] = OK
17:02:33 T:572  NOTICE: [IMDB Update] - [1] Oblivion: updated from 6.30000019073 (3475) to 7.0 (382459)

Maybe it's a JSON issue : http://forum.kodi.tv/showthread.php?tid=...pid2363325
It's a bug.. This pr , even if unrelated, will fix it (probably tomorrow's build will include it):
https://github.com/xbmc/xbmc/pull/10020
Good news Wink
Latest build of Krypton (KodiSetup-20160623-2731311-master) fix this issue :

Image
Thanks for the update Smile
I'm getting some strange errors with Jarvis:

http://pastebin.com/ddziu63V

According to the log it seems that some ratings or Top250 movies are parsed??
Still one of the best addons available. Thanks for that!
Awesome, thanks for getting it working on Jarvis, great app! Smile
Thanks for the update, great
This addon is now marked as broken in Krypton and thus disabled. Is there something that could be done to make it compatible?
Just use nodes like i've mentioned about 5 times in this thread?
(2016-09-17, 14:24)zag Wrote: [ -> ]Just use nodes like i've mentioned about 5 times in this thread?

I only see two references in this thread - one is this last post of yours and another points to your signature, but it must have been changed because it says nothing about nodes...?
(2016-06-23, 11:37)mikebzh44 Wrote: [ -> ]Also add some new ID label for translate settings windows and add French language (send PR on GITHUB).

@mikebzh44, do you have a modded version in GitHub or another place that you can share, that works well in Krypton Beta 3? I would be most grateful if you could post a link.

Regards,

Bart
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