• 1
  • 34
  • 35
  • 36(current)
  • 37
  • 38
  • 40
[RELEASE] - Rating Update v1.4.3
(2015-12-15, 17:40)marhutchy Wrote:
(2015-12-15, 13:06)axlt2002 Wrote:
(2015-12-15, 11:42)marhutchy Wrote: How do we do that?
I did know we could do that?

Hello, you can find the related HOW-TO at the following link Nod

Show me where it says you can export to nfo.
I use nfos when importing media into my library. I never saw anything saying that we can update said nfos via Kodi.
Kodi deals mostly with .xml files.

Hi marhutchy, thanks for your unpolite and dictating answer...

I would kindly suggest you to read again carefully the page I pointed, the related links, as well as the basics of Kodi related to the .nfo files management...all things that a user with almost 300 posts and reputation 9 should know...

Regards.
Light IMDb Ratings Update - Keep updated the IMDb ratings for your movies and TV shows.
In case you found useful my work, feel free to offer me a cappuccino!
Reply
(2015-12-16, 13:10)axlt2002 Wrote:
(2015-12-15, 17:40)marhutchy Wrote:
(2015-12-15, 13:06)axlt2002 Wrote: Hello, you can find the related HOW-TO at the following link Nod

Show me where it says you can export to nfo.
I use nfos when importing media into my library. I never saw anything saying that we can update said nfos via Kodi.
Kodi deals mostly with .xml files.

Hi marhutchy, thanks for your unpolite and dictating answer...

I would kindly suggest you to read again carefully the page I pointed, the related links, as well as the basics of Kodi related to the .nfo files management...all things that a user with almost 300 posts and reputation 9 should know...

Regards.

Yuh touchy eee!!!

I forgot to use "?" in my post and because of that you take it as me being rude. LOL

Anyways... thanks for pointing that out. The page that you had linked to was almost blank, but after you responded I realized one of the links is actually useful.
Laptop: Dell Inspiron i7559-2512BLK | Windows 10 Pro x64 | Intel Core i7 6700HQ (2.60 GHz) | 1 TB + 8 GB SSHD
Kodi 18.3
MiniPC: LibreELEC 8.2.1
Sharing Media: SMB (HDD: 2 TB, 1 TB) | Media Manager/Organizer - Media Companion
Reply
(2015-12-17, 02:44)marhutchy Wrote:
(2015-12-16, 13:10)axlt2002 Wrote:
(2015-12-15, 17:40)marhutchy Wrote: Show me where it says you can export to nfo.
I use nfos when importing media into my library. I never saw anything saying that we can update said nfos via Kodi.
Kodi deals mostly with .xml files.

Hi marhutchy, thanks for your unpolite and dictating answer...

I would kindly suggest you to read again carefully the page I pointed, the related links, as well as the basics of Kodi related to the .nfo files management...all things that a user with almost 300 posts and reputation 9 should know...

Regards.

Yuh touchy eee!!!

I forgot to use "?" in my post and because of that you take it as me being rude. LOL

Anyways... thanks for pointing that out. The page that you had linked to was almost blank, but after you responded I realized one of the links is actually useful.

Happy that you solved the issue!

No worries, I was quite tired yesterday, I misunderstood for sure your message! Wink Take care!
Light IMDb Ratings Update - Keep updated the IMDb ratings for your movies and TV shows.
In case you found useful my work, feel free to offer me a cappuccino!
Reply
Hi, I don't get your script run on my setup.

I have Kodi 15.2 on Windows 10 with a remote MySQL-DB. I have added the data for the MySQL-DB in the addon-settings.
PHP is unzipped to C:\Php5\ and this path is set in the addon. I also have installed the x86 version of VisualStudio C++ 2012.

My problem is, that the addon seems to fail to create the ruDatabase.db file.


Log with Debugging:

Quote:14:06:40 T:3192 DEBUG: Keyboard: scancode: 0x1c, sym: 0x000d, unicode: 0x000d, modifier: 0x0
14:06:40 T:3192 DEBUG: CInputManager::OnKey: return (0xf00d) pressed, action is Select
14:06:40 T:3164 NOTICE: Thread LanguageInvoker start, auto delete: false
14:06:40 T:3164 INFO: initializing python engine.
14:06:40 T:3164 DEBUG: CPythonInvoker(22, C:\Users\Marvin\AppData\Roaming\Kodi\addons\script.ratingupdate\default.py): start processing
14:06:40 T:3164 NOTICE: -->Python Interpreter Initialized<--
14:06:40 T:3164 DEBUG: CPythonInvoker(22, C:\Users\Marvin\AppData\Roaming\Kodi\addons\script.ratingupdate\default.py): the source file to load is "C:\Users\Marvin\AppData\Roaming\Kodi\addons\script.ratingupdate\default.py"
14:06:40 T:3164 DEBUG: CPythonInvoker(22, C:\Users\Marvin\AppData\Roaming\Kodi\addons\script.ratingupdate\default.py): setting the Python path to C:\Users\Marvin\AppData\Roaming\Kodi\addons\script.ratingupdate;C:\Users\Marvin\AppData\Roaming\Kodi\addons\script.module.myconnpy\lib;C:\Users\Marvin\AppData\Roaming\Kodi\addons\script.module.simplejson\lib;C:\Program Files (x86)\Kodi\system\python\DLLs;C:\Program Files (x86)\Kodi\system\python\Lib;C:\Program Files (x86)\Kodi\python27.zip;C:\Program Files (x86)\Kodi\system\python\lib\plat-win;C:\Program Files (x86)\Kodi\system\python\lib\lib-tk;C:\Program Files (x86)\Kodi;C:\Program Files (x86)\Kodi\system\python;C:\Program Files (x86)\Kodi\system\python\lib\site-packages
14:06:40 T:3164 DEBUG: CPythonInvoker(22, C:\Users\Marvin\AppData\Roaming\Kodi\addons\script.ratingupdate\default.py): entering source directory C:\Users\Marvin\AppData\Roaming\Kodi\addons\script.ratingupdate
14:06:40 T:3164 DEBUG: CPythonInvoker(22, C:\Users\Marvin\AppData\Roaming\Kodi\addons\script.ratingupdate\default.py): instantiating addon using automatically obtained id of "script.ratingupdate" dependent on version 2.1.0 of the xbmc.python api
14:06:40 T:3164 DEBUG: LocalizeStrings: no translation available in currently set gui language, at path C:\Users\Marvin\AppData\Roaming\Kodi\addons\script.ratingupdate\resources\language\German
14:06:40 T:3164 DEBUG: POParser: loaded 121 strings from file C:\Users\Marvin\AppData\Roaming\Kodi\addons\script.ratingupdate\resources\language\English\strings.po
14:06:40 T:3164 NOTICE: [Rating Update] - Creates and populates the ruDatabase.db
14:06:40 T:3164 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'sqlite3.OperationalError'>
Error Contents: unable to open database file
Traceback (most recent call last):
File "C:\Users\Marvin\AppData\Roaming\Kodi\addons\script.ratingupdate\default.py", line 10, in <module>
from resources.lib.ruCommon import *
File "C:\Users\Marvin\AppData\Roaming\Kodi\addons\script.ratingupdate\resources\lib\ruCommon.py", line 152, in <module>
ruDatabase.Execute( 'CREATE TABLE latest (top250 TEXT, movies TEXT, tvshows TEXT)')
File "C:\Users\Marvin\AppData\Roaming\Kodi\addons\script.ratingupdate\resources\lib\ruCommon.py", line 116, in Execute
return ruDatabase.Query( Query )
File "C:\Users\Marvin\AppData\Roaming\Kodi\addons\script.ratingupdate\resources\lib\ruCommon.py", line 105, in Query
ruDatabaseConnect = ConnectToDb()
File "C:\Users\Marvin\AppData\Roaming\Kodi\addons\script.ratingupdate\resources\lib\ruCommon.py", line 121, in ConnectToDb
return sqlite3.connect( dbHost )
OperationalError: unable to open database file
-->End of Python script error report<--
14:06:40 T:3192 DEBUG: ------ Window Init (DialogKaiToast.xml) ------
14:06:40 T:3164 INFO: Python script stopped
14:06:40 T:3164 DEBUG: Thread LanguageInvoker 3164 terminating
14:06:40 T:3192 INFO: XCURL:Big GrinllLibCurlGlobal::CheckIdle - Closing session to http://www.msftncsi.com (easy=192A0E60, multi=00000000)

Do yout have any suggestions how i can get your script work properly?
Thank you in advance Smile
Reply
Is it possible to run this as a completely silent service so that nothing at all is displayed? I have quite a few movies and TV series and the updating often occurs when I'm watching something. The messages are displayed over the video which is a bit annoying.
Reply
Since i have kodi 16 installed i have a problem the sript shows me the following "The query to IMDb site is failed, sorry" under kodi 15 all was ok !!

Is it a script problem or a kodi Huh

I use openelec !!! and before kodi 16 the script runs perfect anybody here with similar problems ?


Maybe i need a php tool update but i dont came into the openelec unofficial repo (cannot connect the repo) where i can find

Kodi log

Code:
20:06:20 T:140217721747200  NOTICE: [Rating Update] - Started updating for the Movies
20:06:20 T:140217721747200   DEBUG: [Rating Update] - PHP Command: /storage/.kodi/addons/tools.php/bin/php-cgi -q /storage/.kodi/addons/script.ratingupdate/resources/lib/php/getRatings.php -d ID=tt3179568 Country=USA
20:06:20 T:140217721747200   DEBUG: [Rating Update] - JSON Response:
20:06:20 T:140217721747200  NOTICE: [Rating Update] - The query to IMDb site has failed, sorry
20:06:20 T:140217721747200   DEBUG: [Rating Update] - PHP Command: /storage/.kodi/addons/tools.php/bin/php-cgi -q /storage/.kodi/addons/script.ratingupdate/resources/lib/php/getRatings.php -d ID=tt1231287 Country=USA
20:06:20 T:140217721747200   DEBUG: [Rating Update] - JSON Response:
20:06:20 T:140217721747200  NOTICE: [Rating Update] - The query to IMDb site has failed, sorry
20:06:20 T:140217721747200   DEBUG: [Rating Update] - PHP Command: /storage/.kodi/addons/tools.php/bin/php-cgi -q /storage/.kodi/addons/script.ratingupdate/resources/lib/php/getRatings.php -d ID=tt0119468 Country=USA
20:06:20 T:140217721747200   DEBUG: [Rating Update] - JSON Response:
20:06:20 T:140217721747200  NOTICE: [Rating Update] - The query to IMDb site has failed, sorry
20:06:20 T:140217721747200   DEBUG: [Rating Update] - PHP Command: /storage/.kodi/addons/tools.php/bin/php-cgi -q /storage/.kodi/addons/script.ratingupdate/resources/lib/php/getRatings.php -d ID=tt0343135 Country=USA
20:06:20 T:140217721747200   DEBUG: [Rating Update] - JSON Response:
20:06:20 T:140217721747200  NOTICE: [Rating Update] - The query to IMDb site has failed, sorry
20:06:20 T:140217721747200   DEBUG: [Rating Update] - PHP Command: /storage/.kodi/addons/tools.php/bin/php-cgi -q /storage/.kodi/addons/script.ratingupdate/resources/lib/php/getRatings.php -d ID=tt0857265 Country=USA
20:06:20 T:140217721747200   DEBUG: [Rating Update] - JSON Response:
20:06:20 T:140217721747200  NOTICE: [Rating Update] - The query to IMDb site has failed, sorry
20:06:20 T:140217721747200   DEBUG: [Rating Update] - PHP Command: /storage/.kodi/addons/tools.php/bin/php-cgi -q /storage/.kodi/addons/script.ratingupdate/resources/lib/php/getRatings.php -d ID=tt0322259 Country=USA
20:06:20 T:140217721747200   DEBUG: [Rating Update] - JSON Response:
20:06:20 T:140217721747200  NOTICE: [Rating Update] - The query to IMDb site has failed, sorry
20:06:20 T:140217721747200   DEBUG: [Rating Update] - PHP Command: /storage/.kodi/addons/tools.php/bin/php-cgi -q /storage/.kodi/addons/script.ratingupdate/resources/lib/php/getRatings.php -d ID=tt1272878 Country=USA
20:06:20 T:140217721747200   DEBUG: [Rating Update] - JSON Response:
20:06:20 T:140217721747200  NOTICE: [Rating Update] - The query to IMDb site has failed, sorry
20:06:20 T:140217721747200   DEBUG: [Rating Update] - PHP Command: /storage/.kodi/addons/tools.php/bin/php-cgi -q /storage/.kodi/addons/script.ratingupdate/resources/lib/php/getRatings.php -d ID=tt0110167 Country=USA
20:06:20 T:140217721747200   DEBUG: [Rating Update] - JSON Response:
20:06:20 T:140217721747200  NOTICE: [Rating Update] - The query to IMDb site has failed, sorry
20:06:20 T:140217721747200   DEBUG: [Rating Update] - PHP Command: /storage/.kodi/addons/tools.php/bin/php-cgi -q /storage/.kodi/addons/script.ratingupdate/resources/lib/php/getRatings.php -d ID=tt1602472 Country=USA

journal-cu.log
Code:
Jan 22 20:09:02 OpenELEC kodi.sh[644]: /storage/.kodi/addons/tools.php/bin/php-cgi: error while loading shared libraries: libssl.so.32: cannot open shared object file: No such file or directory
Jan 22 20:09:02 OpenELEC kodi.sh[644]: /storage/.kodi/addons/tools.php/bin/php-cgi: error while loading shared libraries: libssl.so.32: cannot open shared object file: No such file or directory
Jan 22 20:09:03 OpenELEC kodi.sh[644]: /storage/.kodi/addons/tools.php/bin/php-cgi: error while loading shared libraries: libssl.so.32: cannot open shared object file: No such file or directory
Jan 22 20:09:03 OpenELEC kodi.sh[644]: /storage/.kodi/addons/tools.php/bin/php-cgi: error while loading shared libraries: libssl.so.32: cannot open shared object file: No such file or directory
Jan 22 20:09:03 OpenELEC kodi.sh[644]: /storage/.kodi/addons/tools.php/bin/php-cgi: error while loading shared libraries: libssl.so.32: cannot open shared object file: No such file or directory
Jan 22 20:09:03 OpenELEC kodi.sh[644]: /storage/.kodi/addons/tools.php/bin/php-cgi: error while loading shared libraries: libssl.so.32: cannot open shared object file: No such file or directory
Jan 22 20:09:03 OpenELEC kodi.sh[644]: /storage/.kodi/addons/tools.php/bin/php-cgi: error while loading shared libraries: libssl.so.32: cannot open shared object file: No such file or directory
Jan 22 20:09:03 OpenELEC kodi.sh[644]: /storage/.kodi/addons/tools.php/bin/php-cgi: error while loading shared libraries: libssl.so.32: cannot open shared object file: No such file or directory
Jan 22 20:09:03 OpenELEC kodi.sh[644]: /storage/.kodi/addons/tools.php/bin/php-cgi: error while loading shared libraries: libssl.so.32: cannot open shared object file: No such file or directory
Jan 22 20:09:03 OpenELEC kodi.sh[644]: /storage/.kodi/addons/tools.php/bin/php-cgi: error while loading shared libraries: libssl.so.32: cannot open shared object file: No such file or directory
Jan 22 20:09:03 OpenELEC kodi.sh[644]: /storage/.kodi/addons/tools.php/bin/php-cgi: error while loading shared libraries: libssl.so.32: cannot open shared object file: No such file or directory
Jan 22 20:09:03 OpenELEC kodi.sh[644]: /storage/.kodi/addons/tools.php/bin/php-cgi: error while loading shared libraries: libssl.so.32: cannot open shared object file: No such file or directory
Jan 22 20:09:03 OpenELEC kodi.sh[644]: /storage/.kodi/addons/tools.php/bin/php-cgi: error while loading shared libraries: libssl.so.32: cannot open shared object file: No such file or directory
Jan 22 20:09:03 OpenELEC kodi.sh[644]: /storage/.kodi/addons/tools.php/bin/php-cgi: error while loading shared libraries: libssl.so.32: cannot open shared object file: No such file or directory
Jan 22 20:09:03 OpenELEC kodi.sh[644]: /storage/.kodi/addons/tools.php/bin/php-cgi: error while loading shared libraries: libssl.so.32: cannot open shared object file: No such file or directory
Jan 22 20:09:03 OpenELEC kodi.sh[644]: /storage/.kodi/addons/tools.php/bin/php-cgi: error while loading shared libraries: libssl.so.32: cannot open shared object file: No such file or directory
Jan 22 20:09:03 OpenELEC kodi.sh[644]: /storage/.kodi/addons/tools.php/bin/php-cgi: error while loading shared libraries: libssl.so.32: cannot open shared object file: No such file or directory
Jan 22 20:09:03 OpenELEC kodi.sh[644]: /storage/.kodi/addons/tools.php/bin/php-cgi: error while loading shared libraries: libssl.so.32: cannot open shared object file: No such file or directory
Jan 22 20:09:03 OpenELEC kodi.sh[644]: /storage/.kodi/addons/tools.php/bin/php-cgi: error while loading shared libraries: libssl.so.32: cannot open shared object file: No such file or directory
Jan 22 20:09:03 OpenELEC kodi.sh[644]: /storage/.kodi/addons/tools.php/bin/php-cgi: error while loading shared libraries: libssl.so.32: cannot open shared object file: No such file or directory
[/php]
Reply
recently script stopped updating ratings. Votes value was missing according to log.
Got it working by editing script.ratingupdate\resources\lib\imdb\imdb.class.php - line 329

Code:
if (preg_match('!<span itemprop="ratingCount">([\d\.,]+)</span!i',$this->page["Title"],$match)){

to

Code:
if (preg_match('!<span class="small" itemprop="ratingCount">([\d\.,]+)</span!i',$this->page["Title"],$match)){
Reply
(2016-02-01, 15:04)ezechiel1917 Wrote: recently script stopped updating ratings. Votes value was missing according to log.
Got it working by editing script.ratingupdate\resources\lib\imdb\imdb.class.php - line 329

Code:
if (preg_match('!<span itemprop="ratingCount">([\d\.,]+)</span!i',$this->page["Title"],$match)){

to

Code:
if (preg_match('!<span class="small" itemprop="ratingCount">([\d\.,]+)</span!i',$this->page["Title"],$match)){

i also realized that updating votes stopped, might be because of imdb layout changes recently.
Reply
(2016-02-01, 20:49)neurosis13 Wrote:
(2016-02-01, 15:04)ezechiel1917 Wrote: recently script stopped updating ratings. Votes value was missing according to log.
Got it working by editing script.ratingupdate\resources\lib\imdb\imdb.class.php - line 329

Code:
if (preg_match('!<span itemprop="ratingCount">([\d\.,]+)</span!i',$this->page["Title"],$match)){

to

Code:
if (preg_match('!<span class="small" itemprop="ratingCount">([\d\.,]+)</span!i',$this->page["Title"],$match)){

i also realized that updating votes stopped, might be because of imdb layout changes recently.

Thanks for the fix!

I didn't check yet. Was the issue just related to votes? Other information are downloaded correctly?
Light IMDb Ratings Update - Keep updated the IMDb ratings for your movies and TV shows.
In case you found useful my work, feel free to offer me a cappuccino!
Reply
mpaa was ok, but ratings weren't updated because of empty votes.
Reply
(2016-02-01, 15:04)ezechiel1917 Wrote: recently script stopped updating ratings. Votes value was missing according to log.
Got it working by editing script.ratingupdate\resources\lib\imdb\imdb.class.php - line 329

Code:
if (preg_match('!<span itemprop="ratingCount">([\d\.,]+)</span!i',$this->page["Title"],$match)){

to

Code:
if (preg_match('!<span class="small" itemprop="ratingCount">([\d\.,]+)</span!i',$this->page["Title"],$match)){

Dont fix the problem on kodi 16 jarvis Sad!!
Reply
Latest openelec update (jarvis) solved my problems!!
Reply
the addon is asking for php-cgi.
where do I find it and how do I make the addon work?
I am using latest Jarvis release and windows 10 pro.
Regards,

PJ
Reply
(2016-02-22, 13:32)P_Jamula Wrote: the addon is asking for php-cgi.
where do I find it and how do I make the addon work?
I am using latest Jarvis release and windows 10 pro.

read the opening thread, install instructions for windows is listed there
Reply
Disclaimer: I don't know how to code Smile

I was trying your script in last two days and liked it very much. But I was not comfortable with the "update all at the same" methodology since I have a large library. Anyway did some reading and dig some examples (context.trakt.rate) and surprisingly I have managed to add "Update Rating" context menu item to movie list Tongue

For those who want the same ability:

edit addon.xml in script.ratingupdate directory and add below lines:

Code:
    <extension point="kodi.context.item" library="ratenow.py">
        <item>
        <label>Update Rating</label>
        <visible>!Container.Content(seasons) + !Container.Content(episodes) + !Container.Content(tvshows)</visible>
        </item>
</extension>

create blank ratenow.py file in same directory in script.ratingupdate and add below code:

Code:
# -*- coding: utf-8 -*-

import xbmc

if __name__ == '__main__':
    xbmc.executebuiltin("RunScript(script.ratingupdate,Single=Movie)")

Than go to your movie list hit "C" for context menu there should be new menu item as "Update Rating" hit it and cross your fingers...

I' m not even sure if this feature already available somehow Smile Since I couldn't find it I just decided to have some fun.
Reply
  • 1
  • 34
  • 35
  • 36(current)
  • 37
  • 38
  • 40

Logout Mark Read Team Forum Stats Members Help
[RELEASE] - Rating Update v1.4.37