Kodi Community Forum
[RELEASE] IMDB Ratings for Movies - 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] IMDB Ratings for Movies (/showthread.php?tid=92132)

Pages: 1 2 3 4 5 6 7


RE: [RELEASE] IMDB Ratings for Movies - cosmicr - 2013-04-11

Hi all, sorry once again for neglecting this addon. I'll be updating soonish to use the JSON-RPC API instead of direct read/writes to the database, as well as using a different imdb api (instead of hammering their site).

I'm also planning on getting this addon in to the official repository.

Stay Tuned.


RE: [RELEASE] IMDB Ratings for Movies - Mati24 - 2013-05-21

How can I do for add the script in frodo 12.2 ? thanks


RE: [RELEASE] IMDB Ratings for Movies - cosmicr - 2013-05-23

I've made the updates, the addon is working for Frodo, but I haven't had the time to post an update. I just need to push it to git, and I'll have a link soon.


Re: [RELEASE] IMDB Ratings for Movies - RockDawg - 2013-05-24

Looking forward to it!


RE: [RELEASE] IMDB Ratings for Movies - cosmicr - 2013-05-26

Hello All. I have uploaded the newest version. Check the first post for detail.

You can download the script from here: https://www.dropbox.com/s/jroy9e1xonw1nok/script.imdbratings-2.0.zip

or from the github repository: https://github.com/cosmicr/IMDB-Ratings-for-Movies


RE: [RELEASE] IMDB Ratings for Movies - dvbtjunkie - 2013-05-31

Big Thx...

Unfortunately it gives a error,Sad

Code:
ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
    Error Type: <type 'exceptions.TypeError'>
    Error Contents: integer argument expected, got float
    Traceback (most recent call last):
    File "/home/xbmc/.xbmc/addons/script.imdbratings/default.py", line 131, in <module>
    main()
    File "/home/xbmc/.xbmc/addons/script.imdbratings/default.py", line 115, in main
    pDialog.update(percent,_('beginning_update'),movie['label'],_('rating')+rating)
    TypeError: integer argument expected, got float
-->End of Python script error report<--



RE: [RELEASE] IMDB Ratings for Movies - cosmicr - 2013-05-31

hmm that's weird. I'm not sure why it's doing that - I never ran into that error. An easy fix - I will fix it and update as soon as I can. Thanks for letting me know.


RE: [RELEASE] IMDB Ratings for Movies - ShadowTek - 2013-05-31

Hi man, thanks!

I was wondering, could this be modified to get the mpaa descriptions added to movies? Theres a similar script here and I tried modifying that one but it was too hard. This one looks like it might be a bit easyer to do?

I just need it to run once to add the mpaa description to 900 movies. Thanks for any help, and thanks for the addon Smile


EDIT: Not sure this matters but in the Default.py you have:

Code:
command='{"jsonrpc": "2.0", "method": "VideoLibrary.SetMovieDetails", "params": { "movieid" : ' + movieid + ', "rating" : '+ rating + ', "votes" : "' + votes + '"}, "id": 2}'

Note:
Code:
{ "movieid" : ' + movieid + ', "rating" : '+ rating + ', "votes" : "' + votes + '"}
Theres a missing space between the ' and + rating + '
Like I said I have no idea if that matters or not but noticed it while I was attempting to modify this to add the mpaa descriptions and thought Id mention it.


RE: [RELEASE] IMDB Ratings for Movies - dvbtjunkie - 2013-06-18

@ cosmicr
Any ideas to fix the Problem?


RE: [RELEASE] IMDB Ratings for Movies - Jandalf - 2013-06-18

(2013-06-18, 00:05)dvbtjunkie Wrote: @ cosmicr
Any ideas to fix the Problem?

change this line in default.py:
Code:
pDialog.update(percent,_('beginning_update'),movie['label'],_('rating')+rating)
to
Code:
pDialog.update(int(percent),_('beginning_update'),movie['label'],_('rating')+rating)



RE: [RELEASE] IMDB Ratings for Movies - dvbtjunkie - 2013-06-18

(2013-06-18, 08:58)Jandalf Wrote:
(2013-06-18, 00:05)dvbtjunkie Wrote: @ cosmicr
Any ideas to fix the Problem?

change this line in default.py:
Code:
pDialog.update(percent,_('beginning_update'),movie['label'],_('rating')+rating)
to
Code:
pDialog.update(int(percent),_('beginning_update'),movie['label'],_('rating')+rating)

@ Jandalf
OMG, only a convert to Integer.... Thx a lot

Now it works fine... Big Grin


RE: [RELEASE] IMDB Ratings for Movies - shedrock - 2013-06-21

I keep getting "Script Failed" message in OpenELEC but it works in Windows. Any ideas?

Thanks
Shedrock


RE: [RELEASE] IMDB Ratings for Movies - Jandalf - 2013-06-21

(2013-06-21, 01:25)shedrock Wrote: I keep getting "Script Failed" message in OpenELEC but it works in Windows. Any ideas?

Thanks
Shedrock

pls post your log from openelec


RE: [RELEASE] IMDB Ratings for Movies - shedrock - 2013-06-21

Here is the log:
http://xbmclogs.com/show.php?id=30288


RE: [RELEASE] IMDB Ratings for Movies - Jandalf - 2013-06-21

(2013-06-21, 15:07)shedrock Wrote: Here is the log:
http://xbmclogs.com/show.php?id=30288
same problem as above:
(2013-06-18, 08:58)Jandalf Wrote: change this line in default.py:
Code:
pDialog.update(percent,_('beginning_update'),movie['label'],_('rating')+rating)
to
Code:
pDialog.update(int(percent),_('beginning_update'),movie['label'],_('rating')+rating)

don't know why this only happens in openelec, do you have a different amount of movies?