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


RE: [RELEASE] - Rating Update v1.3.8 - m4x1m - 2014-12-11

(2014-12-09, 16:46)mikesilvo164 Wrote: The Top250 numbers seem to be changed to 1 digit off so #1 is #2 and #2 is #3 and so on.

Yes, you're right. It's my fault. This weekend I'll fix this issue. Thanks.


RE: [RELEASE] - Rating Update v1.3.8 - Simkin84 - 2014-12-12

Nice add-on!

However, i have just updated the ratings for my movies, which is over 1200. When i add new movies, how can i update only those movies, and not all 1200 all over again?

Thanks!


RE: [RELEASE] - Rating Update v1.3.9 - m4x1m - 2014-12-13

(2014-12-12, 23:45)Simkin84 Wrote: Nice add-on!

However, i have just updated the ratings for my movies, which is over 1200. When i add new movies, how can i update only those movies, and not all 1200 all over again?

Thanks!

This feature is in my todo list, but are undecided whether to add an option like "the last 100 200 nnn movies" or "scan new movies from the last time that was done"

Download from GoogleDrive
script.ratingupdate-1.3.9.zip

Download & Install my unofficial XBMC repository
repository.m4x1m.zip

Code:
v1.3.9:
- Optimized pattern for better search in the IMDb Top250.



RE: [RELEASE] - Rating Update v1.3.9 - AudioBeast - 2014-12-20

Is anyone else having the issue where movies rated G are changed to NR?


RE: [RELEASE] - Rating Update v1.3.9 - echo - 2014-12-22

Hi m4x1m, thanks for a useful addon Smile
One small request - please insert thousand separators into the vote count... it's nicer and easier to read "105,322 votes" instead of "105322 votes"..

All my movies have originally had the vote count thousand separator (I use Media Companion for the initial scrape), but they have disappeared with the update the addon has done.

Thanks


RE: [RELEASE] - Rating Update v1.3.9 - justinhow - 2015-01-01

I am running Kodi 14.0.
I have previously successfully used Ratings Update, but now I get the below error on the Kodi Log. I include the Log header and after the....... the part pertaining to the Ratings Update Add On
I am using PHP 5.4.36.0.
I have reinstalled the 1.3.9 Add-On but still get this error.
Any things I can try to fix this?
Code:
14:07:43 T:3836  NOTICE: special://profile/ is mapped to: special://masterprofile/
14:07:43 T:3836  NOTICE: -----------------------------------------------------------------------
14:07:43 T:3836  NOTICE: Starting Kodi (14.0 Git:20141223-ad747d9). Platform: Windows NT x86 32-bit
14:07:43 T:3836  NOTICE: Using Release Kodi x32 build
14:07:43 T:3836  NOTICE: Kodi compiled Dec 23 2014 by MSVC 180030723 for Windows NT x86 32-bit version 6.0 (0x06000000)
14:07:43 T:3836  NOTICE: Running on Gigabyte Technology Co., Ltd. Z68MA-D2H-B3 with Windows 7 SP1, kernel: Windows NT x86 32-bit version 6.1
14:07:43 T:3836  NOTICE: Host CPU: Intel(R) Core(TM) i3-2100T CPU @ 2.50GHz, 4 cores available
14:07:43 T:3836  NOTICE: Desktop Resolution: 1920x1080 32Bit at 60Hz
14:07:43 T:3836  NOTICE: Running with restricted rights
14:07:43 T:3836  NOTICE: Aero is enabled
14:07:43 T:3836  NOTICE: special://xbmc/ is mapped to: C:\Program Files\Kodi
14:07:43 T:3836  NOTICE: special://xbmcbin/ is mapped to: C:\Program Files\Kodi
14:07:43 T:3836  NOTICE: special://masterprofile/ is mapped to: C:\Users\Justin.MC-PC\AppData\Roaming\Kodi\userdata
14:07:43 T:3836  NOTICE: special://home/ is mapped to: C:\Users\Justin.MC-PC\AppData\Roaming\Kodi\
14:07:43 T:3836  NOTICE: special://temp/ is mapped to: C:\Users\Justin.MC-PC\AppData\Roaming\Kodi\cache
14:07:43 T:3836  NOTICE: The executable running is: C:\Program Files\Kodi\Kodi.exe
....................
14:36:26 T:2868  NOTICE: Thread LanguageInvoker start, auto delete: false
14:36:26 T:2868  NOTICE: -->Python Interpreter Initialized<--
14:36:26 T:2868  NOTICE: [Rating Update] - Starting Rating Update v1.3.9
14:36:26 T:1904  NOTICE: Thread LanguageInvoker start, auto delete: false
14:36:26 T:1904  NOTICE: -->Python Interpreter Initialized<--
14:36:26 T:1904 WARNING: CPythonInvoker(16): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
14:36:27 T:1904  NOTICE: [Rating Update] - Sending query to the IMDb site, please wait ...
14:36:27 T:1904   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.WindowsError'>
                                            Error Contents: (6, 'The handle is invalid')
                                            Traceback (most recent call last):
                                              File "C:\Users\Justin.MC-PC\AppData\Roaming\Kodi\addons\script.ratingupdate\resources\lib\ruMainGui.py", line 53, in onClick
                                                self.closeDialog(); Top250(); self.doModal();
                                              File "C:\Users\Justin.MC-PC\AppData\Roaming\Kodi\addons\script.ratingupdate\resources\lib\ruMain.py", line 20, in __init__
                                                self.Top250 = self.getTop250()
                                              File "C:\Users\Justin.MC-PC\AppData\Roaming\Kodi\addons\script.ratingupdate\resources\lib\ruMain.py", line 50, in getTop250
                                                jXmlData = getTop250()
                                              File "C:\Users\Justin.MC-PC\AppData\Roaming\Kodi\addons\script.ratingupdate\resources\lib\ruCommon.py", line 83, in getTop250
                                                jXmlData = Popen([r"" + binaryPath + "","-q",r"" + top250Path + ""], startupinfo=startupinfo, stdout=PIPE).communicate()[0]
                                              File "C:\Program Files\Kodi\system\python\Lib\subprocess.py", line 702, in __init__
                                                errread, errwrite), to_close = self._get_handles(stdin, stdout, stderr)
                                              File "C:\Program Files\Kodi\system\python\Lib\subprocess.py", line 833, in _get_handles
                                                p2cread = self._make_inheritable(p2cread)
                                              File "C:\Program Files\Kodi\system\python\Lib\subprocess.py", line 884, in _make_inheritable
                                                _subprocess.DUPLICATE_SAME_ACCESS)
                                            WindowsError: (6, 'The handle is invalid')
                                            -->End of Python script error report<--



RE: [RELEASE] - Rating Update v1.3.9 - m4x1m - 2015-01-02

(2014-12-22, 23:52)echo Wrote: Hi m4x1m, thanks for a useful addon Smile
One small request - please insert thousand separators into the vote count... it's nicer and easier to read "105,322 votes" instead of "105322 votes"..

All my movies have originally had the vote count thousand separator (I use Media Companion for the initial scrape), but they have disappeared with the update the addon has done.

Thanks

Edit .kodi/addons/script.ratingupdate/resources/lib/php/getRatings.php

On line 15 change:
"votes":"'.$Movie->votes().'"
to:
"votes":"'.number_format($Movie->votes()).'"

in the next release I'll add this fix.

(2015-01-01, 16:42)justinhow Wrote: I am running Kodi 14.0.
I have previously successfully used Ratings Update, but now I get the below error on the Kodi Log. I include the Log header and after the....... the part pertaining to the Ratings Update Add On
I am using PHP 5.4.36.0.
I have reinstalled the 1.3.9 Add-On but still get this error.
Any things I can try to fix this?

This is not a script problem! I've tried the script on linux and windows 7 64bit. I think there is some issue in the 32bit libraries of NT. I don't have any way to test. Sorry.


RE: [RELEASE] - Rating Update v1.3.9 - echo - 2015-01-02

(2015-01-02, 14:29)m4x1m Wrote: Edit .kodi/addons/script.ratingupdate/resources/lib/php/getRatings.php
....
in the next release I'll add this fix.
Thanks Smile


RE: [RELEASE] - Rating Update v1.3.9 - Yaff1e - 2015-01-05

I've just installed this on Raspbmc and have been having a play. I've set up the ratings country as UK and the MPAA rating prefix's as UK: so that I get UK ratings and this works if I do a single update from within Movie Information in any one film. I then tried a mass update and it processed 300+ films and said it had updated 290+ of them but when I check them they're still showing US ratings.

Is there anything obvious I'm missing? If not I'll grab a log tomorrow as I have to be up for work in 4 hours. lol


RE: [RELEASE] - Rating Update v1.3.9 - wilmans2m - 2015-01-05

VC9 is OK but can we use VC11 ?

Thanks


RE: [RELEASE] - Rating Update v1.3.9 - Yaff1e - 2015-01-06

Hmmm... Oddly I've ran it tonight to generate a fresh log and it's worked perfectly. Many thanks for the script


RE: [RELEASE] - Rating Update v1.3.9 - genuk360 - 2015-01-06

Thank you m4x1m for the good addon.

I have use it with OpenELEC (3.X) on raspy and it was great.
Switching to the new OpenELEC 5.0 (Kodi) i have some problems to get your plugin working.

First I have use my old "php-cgi" executable from RTorrent which use to work in OpeneELEC (3.X).

Starting the TOP 250 get: "The query to IMDb site is failed, sorry"
The Kodi LOG:
Code:
10:13:00 T:2911007808  NOTICE: [Rating Update] - Sending query to the IMDb site, please wait ...
10:13:00 T:2911007808  NOTICE: [Rating Update] - The query to IMDb site is failed, sorry

Starting the Rating Update for movies or TV, check all the files and get: "0 of XX were updated"
Again the Kodi LOG:
Code:
10:40:01 T:2874143808  NOTICE: [Rating Update] - Movies ratings summary: 0 of XX were updated
10:40:01 T:2848977984  NOTICE: [Rating Update] - The query to IMDb site is failed, sorry
checking my php-cgi executable with:
Code:
OpenELEC:~/.kodi/addons/script.ratingupdate # bin/php-cgi resources/lib/php/getTop250.php
get:
Code:
bin/php-cgi: /usr/lib/libcurl.so.4: version `CURL_GNUTLS_4' not found (required by bin/php-cgi)
It looks like newer OpenELEC versions have a new libcurl.so.4 which is not working with my old php-cgi.

Here is my solution to install a working php-cgi and get "Rating Update" Plugin working (please note that it works with Openelec 5.0 on RaspberryPi with Rating Update v1.3.9)
Maybe it will save some time for other people Smile

1.Install "php-cgi"

1.1 Install(enable) "Unofficial OpenELEC (RPi/arm) Add-ons" repository:
Settings-->Addons-->Get addons-->Openelec Mediacenter OS Add-ons--> Add-on repository-->Unofficial OpenELEC (RPi/arm) Add-ons--> Install
1.2 Then go to Settings-->Addons-->Get addons-->Unofficial OpenELEC (RPi/arm) Add-ons and do a "Force refresh" from "Context menu":
1.3 Search for "php" in "Settings-->Addons-->Search" and install the (hopefully) found "Script - php":

Your php-cgi binary is now in /storage/.kodi/addons/tools.php/bin/php-cgi

2.Install from zip the "Rating Update" script.

3.ssh to your OpenELEC and edit the file settings.xml
Code:
nano /storage/.kodi/addons/script.ratingupdate/resources/settings.xml

change the (4th) line from:
Code:
    <setting label="32803" type="folder" id="BinaryPath" default="/usr/bin/" source="auto" />
to
Code:
    <setting label="32803" type="folder" id="BinaryPath" default="/storage/.kodi/addons/tools.php/bin/" source="auto" />

Voila!


RE: [RELEASE] - Rating Update v1.3.9 - Yaff1e - 2015-01-07

I seem to have come across a problem with TV search. It gets as far as Dave Gorman's Googlewhack Adventure and locks up. There's no response to button presses at all. I've tried it a few times with the same result each time. If I remove it from the library it runs through all the others fine. I've had a look in the log and the last entry is for the previous series with nothing at all for the one it crashes on. I'll have to try and get a more detailed log tomorrow.


RE: [RELEASE] - Rating Update v1.3.9 - Yaff1e - 2015-01-08

Well I've tried again with Debugging on and the only relevant bit seems to be

Code:
23:22:59 T:2467701824  NOTICE: [Rating Update] - Dave Gorman In America Unchained: is set to skipping always
23:22:59 T:2517673024   DEBUG: webserver: request received for /jsonrpc
23:23:02 T:2467701824   DEBUG: Previous line repeats 2 times.
23:23:02 T:2467701824   DEBUG: [Rating Update] - PHP Command: /usr/bin/php-cgi -q /home/pi/.kodi/addons/script.ratingupdate/resources/lib/php/searchByTitle.php -d Title="Dave Gorman's Googlewhack Adventure"
23:23:02 T:2467701824   DEBUG: [Rating Update] - XML Response: <?xml version="1.0" encoding="UTF-8" ?>
                                            <root>
                                             <results>
                                             </results>
                                            </root>
23:23:03 T:3038814208   DEBUG: CAnnouncementManager - Announcement: OnScreensaverActivated from xbmc
23:23:03 T:3038814208   DEBUG: GOT ANNOUNCEMENT, type: 4, from xbmc, message OnScreensaverActivated
23:23:03 T:3038814208   DEBUG: ------ Window Init () ------
23:23:03 T:2476090432   DEBUG: webserver: request received for /jsonrpc
23:23:04 T:2484479040   DEBUG: Previous line repeats 1 times.

That's the last entry related to Rating Update in the log. It then just sits on Searching and if I try and cancel it the screen changes to Cancelling and then I can't do anything else.


RE: [RELEASE] - Rating Update v1.4.0 - m4x1m - 2015-01-10

(2015-01-05, 18:59)wilmans2m Wrote: VC9 is OK but can we use VC11 ?

Thanks

Yes.

(2015-01-08, 02:43)Yaff1e Wrote: Well I've tried again with Debugging on and the only relevant bit seems to be

That's the last entry related to Rating Update in the log. It then just sits on Searching and if I try and cancel it the screen changes to Cancelling and then I can't do anything else.

Download from GoogleDrive
script.ratingupdate-1.4.0.zip

Download & Install my unofficial XBMC repository
repository.m4x1m.zip

Code:
v1.4.0:
- Added "Video" filter when searching TV Show by title.
- Formatted number when gets number of voters.