(2022-01-16, 10:15)Karellen Wrote: [ -> ] (2022-01-16, 10:03)zombi1101 Wrote: [ -> ]No matter how long I wait and relaunch again it happens.
What version of the addon are you using?
Provide a Debug Log and we might spot the problem.
Hi Karellen, thank you for your reply.
I wrote I am using the latest, 5.0.2 version. And here is the log
kodi log.
Do you have a Kodi Repository for this addon? Or only manual .zip install?
Thanks for this great addon.
I have a strange behavior.
First a complete update of the library instead of using the context menu works always fine.
But the context menu works fine with some Smart Playlist :
or the context menu don't works fine from others Smart Playlist for the same movie :
In log there is :
xml:
2022-02-01 15:33:21.294 T:953 DEBUG <general>: ------ Window Deinit (DialogContextMenu.xml) ------
2022-02-01 15:33:21.295 T:1212 DEBUG <general>: Thread LanguageInvoker start, auto delete: false
2022-02-01 15:33:21.295 T:1212 INFO <general>: initializing python engine.
2022-02-01 15:33:21.295 T:1212 DEBUG <general>: CPythonInvoker(60, /storage/.kodi/addons/script.light.imdb.ratings.update/context.py): start processing
2022-02-01 15:33:21.308 T:1212 DEBUG <general>: -->Python Interpreter Initialized<--
2022-02-01 15:33:21.308 T:1212 DEBUG <general>:
2022-02-01 15:33:21.308 T:1212 DEBUG <general>: CPythonInvoker(60, /storage/.kodi/addons/script.light.imdb.ratings.update/context.py): the source file to load is "/storage/.kodi/addons/script.light.imdb.ratings.update/context.py"
2022-02-01 15:33:21.308 T:1212 DEBUG <general>: CPythonInvoker(60, /storage/.kodi/addons/script.light.imdb.ratings.update/context.py): setting the Python path to /storage/.kodi/addons/script.light.imdb.ratings.update:/storage/.kodi/addons/script.module.certifi/lib:/storage/.kodi/addons/script.module.chardet/lib:/storage/.kodi/addons/script.module.idna/lib:/storage/.kodi/addons/script.module.requests/lib:/storage/.kodi/addons/script.module.simplejson/lib:/storage/.kodi/addons/script.module.six/lib:/storage/.kodi/addons/script.module.urllib3/lib:/usr/lib/python38.zip:/usr/lib/python3.8:/usr/lib/python3.8/lib-dynload:/usr/lib/python3.8/site-packages
2022-02-01 15:33:21.308 T:1212 DEBUG <general>: CPythonInvoker(60, /storage/.kodi/addons/script.light.imdb.ratings.update/context.py): entering source directory /storage/.kodi/addons/script.light.imdb.ratings.update
2022-02-01 15:33:21.308 T:1212 DEBUG <general>: CPythonInvoker(60, /storage/.kodi/addons/script.light.imdb.ratings.update/context.py): instantiating addon using automatically obtained id of "script.light.imdb.ratings.update" dependent on version 0.0.0 of the xbmc.python api
2022-02-01 15:33:21.327 T:1212 WARNING <general>: xbmc.translatePath is deprecated and might be removed in future kodi versions. Please use xbmcvfs.translatePath instead.
2022-02-01 15:33:21.327 T:1212 DEBUG <CAddonSettings[script.light.imdb.ratings.update]>: trying to load setting definitions from old format...
2022-02-01 15:33:21.423 T:1212 ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'KeyError'>
Error Contents: 'result'
Traceback (most recent call last):
File "/storage/.kodi/addons/script.light.imdb.ratings.update/context.py", line 16, in <module>
UpdateContext()
File "/storage/.kodi/addons/script.light.imdb.ratings.update/context.py", line 13, in UpdateContext
update_context.open_context_menu( sys.listitem.getPath(), sys.listitem.getLabel() )
File "/storage/.kodi/addons/script.light.imdb.ratings.update/resources/core/update_context.py", line 67, in open_context_menu
if 'moviedetails' in jSonResponse['result']:
KeyError: 'result'
-->End of Python script error report<--
2022-02-01 15:33:21.423 T:1212 DEBUG <general>: onExecutionDone(60, /storage/.kodi/addons/script.light.imdb.ratings.update/context.py)
2022-02-01 15:33:21.427 T:953 DEBUG <general>: ------ Window Init (DialogNotification.xml) ------
full debug log :
https://paste.kodi.tv/xisoyugamu.kodi
Anyway thanks for your time and this great addon
(2022-02-01, 18:40)Nanomani Wrote: [ -> ]I have a strange behavior.
First a complete update of the library instead of using the context menu works always fine.
But the context menu works fine with some Smart Playlist :
or the context menu don't works fine from others Smart Playlist for the same movie :
In log there is :
xml:
2022-02-01 15:33:21.294 T:953 DEBUG <general>: ------ Window Deinit (DialogContextMenu.xml) ------
2022-02-01 15:33:21.295 T:1212 DEBUG <general>: Thread LanguageInvoker start, auto delete: false
2022-02-01 15:33:21.295 T:1212 INFO <general>: initializing python engine.
2022-02-01 15:33:21.295 T:1212 DEBUG <general>: CPythonInvoker(60, /storage/.kodi/addons/script.light.imdb.ratings.update/context.py): start processing
2022-02-01 15:33:21.308 T:1212 DEBUG <general>: -->Python Interpreter Initialized<--
2022-02-01 15:33:21.308 T:1212 DEBUG <general>:
2022-02-01 15:33:21.308 T:1212 DEBUG <general>: CPythonInvoker(60, /storage/.kodi/addons/script.light.imdb.ratings.update/context.py): the source file to load is "/storage/.kodi/addons/script.light.imdb.ratings.update/context.py"
2022-02-01 15:33:21.308 T:1212 DEBUG <general>: CPythonInvoker(60, /storage/.kodi/addons/script.light.imdb.ratings.update/context.py): setting the Python path to /storage/.kodi/addons/script.light.imdb.ratings.update:/storage/.kodi/addons/script.module.certifi/lib:/storage/.kodi/addons/script.module.chardet/lib:/storage/.kodi/addons/script.module.idna/lib:/storage/.kodi/addons/script.module.requests/lib:/storage/.kodi/addons/script.module.simplejson/lib:/storage/.kodi/addons/script.module.six/lib:/storage/.kodi/addons/script.module.urllib3/lib:/usr/lib/python38.zip:/usr/lib/python3.8:/usr/lib/python3.8/lib-dynload:/usr/lib/python3.8/site-packages
2022-02-01 15:33:21.308 T:1212 DEBUG <general>: CPythonInvoker(60, /storage/.kodi/addons/script.light.imdb.ratings.update/context.py): entering source directory /storage/.kodi/addons/script.light.imdb.ratings.update
2022-02-01 15:33:21.308 T:1212 DEBUG <general>: CPythonInvoker(60, /storage/.kodi/addons/script.light.imdb.ratings.update/context.py): instantiating addon using automatically obtained id of "script.light.imdb.ratings.update" dependent on version 0.0.0 of the xbmc.python api
2022-02-01 15:33:21.327 T:1212 WARNING <general>: xbmc.translatePath is deprecated and might be removed in future kodi versions. Please use xbmcvfs.translatePath instead.
2022-02-01 15:33:21.327 T:1212 DEBUG <CAddonSettings[script.light.imdb.ratings.update]>: trying to load setting definitions from old format...
2022-02-01 15:33:21.423 T:1212 ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'KeyError'>
Error Contents: 'result'
Traceback (most recent call last):
File "/storage/.kodi/addons/script.light.imdb.ratings.update/context.py", line 16, in <module>
UpdateContext()
File "/storage/.kodi/addons/script.light.imdb.ratings.update/context.py", line 13, in UpdateContext
update_context.open_context_menu( sys.listitem.getPath(), sys.listitem.getLabel() )
File "/storage/.kodi/addons/script.light.imdb.ratings.update/resources/core/update_context.py", line 67, in open_context_menu
if 'moviedetails' in jSonResponse['result']:
KeyError: 'result'
-->End of Python script error report<--
2022-02-01 15:33:21.423 T:1212 DEBUG <general>: onExecutionDone(60, /storage/.kodi/addons/script.light.imdb.ratings.update/context.py)
2022-02-01 15:33:21.427 T:953 DEBUG <general>: ------ Window Init (DialogNotification.xml) ------
full debug log : https://paste.kodi.tv/xisoyugamu.kodi
Anyway thanks for your time and this great addon
Hello @
Nanomani , thanks for your post and sorry for my late answer.
To be honest I have never tried the add-on with smart playlists so it is possible that there are some bugs to be found!
I will try to play a littlle with smart playlists and see what happens. Just some questions for clarification:
- What differs between the first and the third screenshot you posted? I see the add-on error message in both...
- Still between the first and third: are that the same smart playlists? It seems yes...
- What differs between the smart playlist for which everything goes well and the one that gives the error?
- Is the error on the same movie?
Looking forward for your feedback!
Thanks,
Alex
(2022-01-16, 10:30)zombi1101 Wrote: [ -> ] (2022-01-16, 10:15)Karellen Wrote: [ -> ] (2022-01-16, 10:03)zombi1101 Wrote: [ -> ]No matter how long I wait and relaunch again it happens.
What version of the addon are you using?
Provide a Debug Log and we might spot the problem.
Hi Karellen, thank you for your reply.
I wrote I am using the latest, 5.0.2 version. And here is the log kodi log.
Hello @
zombi1101 , is the add-on still having the issue? Unfortunately from the log you posted I didn't find nothing strange...did you enable the debug log for all the Kodi components?
Cheers,
Alex
(2022-01-27, 15:50)neo_ Wrote: [ -> ]Do you have a Kodi Repository for this addon? Or only manual .zip install?
Thanks for this great addon.
Hi @
neo_ , at the moment (i.e. since the beginning
) there is only the manual .zip install. Anyway add-on updates are not so much frequent...luckily!
All the best!
Alex
(2022-02-07, 23:38)axlt2002 Wrote: [ -> ] (2022-01-16, 10:30)zombi1101 Wrote: [ -> ] (2022-01-16, 10:15)Karellen Wrote: [ -> ]What version of the addon are you using?
Provide a Debug Log and we might spot the problem.
Hi Karellen, thank you for your reply.
I wrote I am using the latest, 5.0.2 version. And here is the log kodi log.
Hello @zombi1101 , is the add-on still having the issue? Unfortunately from the log you posted I didn't find nothing strange...did you enable the debug log for all the Kodi components?
Cheers,
Alex
Hi axlt2002. Yes, I still have issues and yes, I did enable debug log for all components ("Enable component-specific logging) was disabled while collecting logs. Maybe it has some collision with VMware Network Adapters (just guessing)?
(2022-02-08, 08:33)zombi1101 Wrote: [ -> ] (2022-02-07, 23:38)axlt2002 Wrote: [ -> ] (2022-01-16, 10:30)zombi1101 Wrote: [ -> ]Hi Karellen, thank you for your reply.
I wrote I am using the latest, 5.0.2 version. And here is the log kodi log.
Hello @zombi1101 , is the add-on still having the issue? Unfortunately from the log you posted I didn't find nothing strange...did you enable the debug log for all the Kodi components?
Cheers,
Alex
Hi axlt2002. Yes, I still have issues and yes, I did enable debug log for all components ("Enable component-specific logging) was disabled while collecting logs. Maybe it has some collision with VMware Network Adapters (just guessing)?
Thanks for the feedback @
zombi1101. I really don't know what the issue could be...as I said, the add-on just tries to reach
www.goolge.com to check the Internet connectivity...is all the rest in Kodi that requires an Internet connection (e.g. repositories, etc.) working properly?
What I can suggest to try is to open the file
you can find under
Code:
...\script.light.imdb.ratings.update\resources\core\
and edit the function
Code:
def wait_for_internet(wait=30, retry=5)
by replacing its content with
With this, it basically skips the Internet connectivity check so that you should be able to update the ratings. Let me know...
Thanks!
(2022-02-08, 10:15)axlt2002 Wrote: [ -> ] (2022-02-08, 08:33)zombi1101 Wrote: [ -> ] (2022-02-07, 23:38)axlt2002 Wrote: [ -> ]Hello @zombi1101 , is the add-on still having the issue? Unfortunately from the log you posted I didn't find nothing strange...did you enable the debug log for all the Kodi components?
Cheers,
Alex
Hi axlt2002. Yes, I still have issues and yes, I did enable debug log for all components ("Enable component-specific logging) was disabled while collecting logs. Maybe it has some collision with VMware Network Adapters (just guessing)?
Thanks for the feedback @zombi1101. I really don't know what the issue could be...as I said, the add-on just tries to reach www.goolge.com to check the Internet connectivity...is all the rest in Kodi that requires an Internet connection (e.g. repositories, etc.) working properly?
What I can suggest to try is to open the file you can find under Code:
...\script.light.imdb.ratings.update\resources\core\
and edit the function Code:
def wait_for_internet(wait=30, retry=5)
by replacing its content with With this, it basically skips the Internet connectivity check so that you should be able to update the ratings. Let me know...
Thanks!
Thank you for your replies @
axlt2002 . I tried your suggestion, but no luck. Kodi informs me "Light IMDb Ratings Update error. Check the log for more information".
(2022-02-08, 11:32)zombi1101 Wrote: [ -> ] (2022-02-08, 10:15)axlt2002 Wrote: [ -> ] (2022-02-08, 08:33)zombi1101 Wrote: [ -> ]Hi axlt2002. Yes, I still have issues and yes, I did enable debug log for all components ("Enable component-specific logging) was disabled while collecting logs. Maybe it has some collision with VMware Network Adapters (just guessing)?
Thanks for the feedback @zombi1101. I really don't know what the issue could be...as I said, the add-on just tries to reach www.goolge.com to check the Internet connectivity...is all the rest in Kodi that requires an Internet connection (e.g. repositories, etc.) working properly?
What I can suggest to try is to open the file you can find under Code:
...\script.light.imdb.ratings.update\resources\core\
and edit the function Code:
def wait_for_internet(wait=30, retry=5)
by replacing its content with With this, it basically skips the Internet connectivity check so that you should be able to update the ratings. Let me know...
Thanks!
Thank you for your replies @axlt2002 . I tried your suggestion, but no luck. Kodi informs me "Light IMDb Ratings Update error. Check the log for more information".
I think that such error is due to the modification you made in common.py. You have to be careful about the indentation of the rows...
Ok, let's be more effective: I'm going to send you a PM with the patched version of the file (just replace it in the folder, making a backup of the original one)
Waiting for news!
@
zombi1101 , it seems you can not receive PMs. Please use
this link to download the patched file.
Let me know. Thanks.
Hi @
axlt2002 . I used your file and no error about Internet this time, but I don't know if it works as it should. I tried some movies, noted ratings and votes (as it shows in Light IMDb), also checked on IMDb.com (rating and votes differs) and when I click on Update, it shows "Updating 0-100%@" and when it gets back to Light windows same stats are there. Nothing changes.
(2022-02-07, 23:32)axlt2002 Wrote: [ -> ]Hello @Nanomani , thanks for your post and sorry for my late answer.
No problem
. thanks for your answer
(2022-02-07, 23:32)axlt2002 Wrote: [ -> ]To be honest I have never tried the add-on with smart playlists so it is possible that there are some bugs to be found! I will try to play a littlle with smart playlists and see what happens. Just some questions for clarification:- What differs between the first and the third screenshot you posted? I see the add-on error message in both...
- Still between the first and third: are that the same smart playlists? It seems yes...
No, it is not the same playlists.
Sorry for the confuse. it is my bad. I have post the wrong screenshoot for the first one. (updated with the good screenshot)
(2022-02-07, 23:32)axlt2002 Wrote: [ -> ]- What differs between the smart playlist for which everything goes well and the one that gives the error?
example where the context menu don't work :
playlists "1 - new - 20 - DERNIER LU"
xml:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="movies">
<name>1 - new - 20 - DERNIER LU</name>
<match>all</match>
<rule field="path" operator="startswith">
<value>/var/media/MEDIATHEQUE/NVIDIA_SHIELD/video/film/</value>
</rule>
<rule field="year" operator="greaterthan">
<value>1989</value>
</rule>
<rule field="playcount" operator="greaterthan">
<value>0</value>
</rule>
<order direction="descending">lastplayed</order>
</smartplaylist>
playlists example where the context menu works fine :
playlists "3 - film - 20 - DERNIER LU"
xml:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<smartplaylist type="movies">
<name>3 - film - 20 - DERNIER LU</name>
<match>all</match>
<rule field="path" operator="startswith">
<value>/var/media/MEDIATHEQUE/NVIDIA_SHIELD/video/film</value>
</rule>
<rule field="playcount" operator="isnot">
<value>0</value>
</rule>
<order direction="descending">lastplayed</order>
</smartplaylist>
(2022-02-07, 23:32)axlt2002 Wrote: [ -> ]- Is the error on the same movie?
[/list]
Yes, on same movie the context menu works fine or not. It depend from which playlist you use context menu.
EDIT 1 : I will do some tests on my side to find what is bug with some playlists
(2022-02-08, 12:37)zombi1101 Wrote: [ -> ]Hi @axlt2002 . I used your file and no error about Internet this time, but I don't know if it works as it should. I tried some movies, noted ratings and votes (as it shows in Light IMDb), also checked on IMDb.com (rating and votes differs) and when I click on Update, it shows "Updating 0-100%@" and when it gets back to Light windows same stats are there. Nothing changes.
Ok, can you please provide the update.log related to the test you described? If nothing changes, I guess that there is a real issue with your Internet connection then...
Alex
"Unable to connect to internet"