Kodi Community Forum

Full Version: script.embuary.info - get TMDb data - the little ExtendedInfo brother
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
(2020-07-15, 07:45)sualfred Wrote: [ -> ]Sure, can you raise a issue on github please? I currently have zero time for anything on the PC (I have moved and still a ton to do). Otherwise there is a high chance that I'll miss it.

Edit:
I just will add a property with the clean plot for you. Otherwise there is a high chance that people don't get the airing date/time in other skins.

Thankyou @sualfred

Added issue to git.
https://github.com/sualfred/script.embua.../issues/64
Hi @sualfred I have decided to switch from extendedinfo script to this one in the new version of Aeon Tajo for Matrix. It works great!

Thanks for your efforts in this tool, much appreciated.
I'm getting an error message in Matrix very often and Kodi closes. The log reads...

xml:
2020-09-11 22:32:27.449 T:6756    ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'AttributeError'>
                                                   Error Contents: 'bytes' object has no attribute 'tzinfo'
                                                   Traceback (most recent call last):
                                                     File "C:\Matrix2\portable_data\addons\script.embuary.info\plugin.py", line 5, in <module>
                                                       from resources.lib.widgets import *
                                                     File "C:\Matrix2\portable_data\addons\script.embuary.info\resources\lib\widgets.py", line 11, in <module>
                                                       from resources.lib.helper import *
                                                     File "C:\Matrix2\portable_data\addons\script.embuary.info\resources\lib\helper.py", line 15, in <module>
                                                       import arrow
                                                     File "C:\Matrix2\portable_data\addons\script.module.arrow\lib\arrow\__init__.py", line 3, in <module>
                                                       from .api import get, now, utcnow
                                                     File "C:\Matrix2\portable_data\addons\script.module.arrow\lib\arrow\api.py", line 10, in <module>
                                                       from arrow.factory import ArrowFactory
                                                     File "C:\Matrix2\portable_data\addons\script.module.arrow\lib\arrow\factory.py", line 19, in <module>
                                                       from arrow.arrow import Arrow
                                                     File "C:\Matrix2\portable_data\addons\script.module.arrow\lib\arrow\arrow.py", line 1395, in <module>
                                                       Arrow.min = Arrow.fromdatetime(datetime.min)
                                                     File "C:\Matrix2\portable_data\addons\script.module.arrow\lib\arrow\arrow.py", line 217, in fromdatetime
                                                       if dt.tzinfo is None:
                                                   AttributeError: 'bytes' object has no attribute 'tzinfo'
                                                   -->End of Python script error report<--

Kodi is sitting idle in the home menu and the widgets are not even active. Thanks!
@manfeed 

It's a known and hard bug to reproduce for the guys on our end which are possible able to solve it. It has something to do with exception namings but without being able to reproduce it 100% it's just guessing. Not everyone is facing it.

Can you try this?

Change this line of the script.module.urllib3 script
https://github.com/xbmc/repo-scripts/blo...nse.py#L55

from
Code:
except zlib.error:
to
Code:
except:
Thanks, I will try it and report back.
Bad news... after the change the bug keeps appearing:

xml:

2020-09-19 17:40:03.241 T:12752   ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'AttributeError'>
                                                   Error Contents: 'datetime.timedelta' object has no attribute 'tzinfo'
                                                   Traceback (most recent call last):
                                                     File "C:\Matrix2\portable_data\addons\script.embuary.info\plugin.py", line 5, in <module>
                                                       from resources.lib.widgets import *
                                                     File "C:\Matrix2\portable_data\addons\script.embuary.info\resources\lib\widgets.py", line 11, in <module>
                                                       from resources.lib.helper import *
                                                     File "C:\Matrix2\portable_data\addons\script.embuary.info\resources\lib\helper.py", line 15, in <module>
                                                       import arrow
                                                     File "C:\Matrix2\portable_data\addons\script.module.arrow\lib\arrow\__init__.py", line 3, in <module>
                                                       from .api import get, now, utcnow
                                                     File "C:\Matrix2\portable_data\addons\script.module.arrow\lib\arrow\api.py", line 10, in <module>
                                                       from arrow.factory import ArrowFactory
                                                     File "C:\Matrix2\portable_data\addons\script.module.arrow\lib\arrow\factory.py", line 19, in <module>
                                                       from arrow.arrow import Arrow
                                                     File "C:\Matrix2\portable_data\addons\script.module.arrow\lib\arrow\arrow.py", line 1396, in <module>
                                                       Arrow.max = Arrow.fromdatetime(datetime.max)
                                                     File "C:\Matrix2\portable_data\addons\script.module.arrow\lib\arrow\arrow.py", line 217, in fromdatetime
                                                       if dt.tzinfo is None:
                                                   AttributeError: 'datetime.timedelta' object has no attribute 'tzinfo'
                                                   -->End of Python script error report<--
Strange, all my problems were solved after changing that line. Anyway, it's not something I can fix in my script. It's a Kodi thing atm.
@sualfred If you get time please have a look at this:- https://github.com/sualfred/script.embuary.info/pull/62

It fixes a bug I introduced with my last pull.
(2020-09-19, 17:48)sualfred Wrote: [ -> ]Strange, all my problems were solved after changing that line. Anyway, it's not something I can fix in my script. It's a Kodi thing atm.

Ok, thanks for looking at it anyway... I must say it's not happening all the time, today it only appeared once in a couple of hours coding and reloading my skin...
Hi,

is it possible to add custom onclick-actions? "Dialog.Close(all,force)" - especially in the youtube list "10054" wouldt be nice. So you could close all open dialogs like "DialoVideoInfo.xml", when playing a video.

Maybe it's not working just for me, when i add a onclick-action, i dont know.  Huh
TVDB is now charging money for their API. Because of this I switched to TMDB for episode data of the Next Aired feature. Sadly the TMDB isn't as rich as TVDB so we have to expect less results. Sorry mates, but I don't wanna deal with their decision.
@sualfred - I just started receiving an error this morning when I boot up my LE box.

Full log here: https://paste.kodi.tv/etaxoyedel.kodi

Thank you,

Shedrock
Same error too (memory leaks)
Oops. 

Fixed on GitHub. PR is on the way to the repo.
I get an similar error to what's posted above, using CE on a N2+.
epajesoqar.kodi (paste)
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