Kodi Community Forum

Full Version: plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
(2020-04-25, 00:59)bogofet Wrote: [ -> ]Hey, is there an issue with trakt calendar? From my end it appears that shows are a day or so off. Sorry if this has already been discussed.

Works fine for me. Are you using latest version of TMDbHelper from my github?

Also, check that Kodi's region settings and also your OS region/time settings are correct - TMDbHelper takes the region settings to calculate the UTC offset.
@jurialmunkey, hmm, I'm not sure what's going on. I updated from github and double checked time zone and regional settings and it still shows, for example, the simpsons on monday. I get the same results on both androidtv and windows pc. ADT is my timezone.
(2020-04-25, 03:31)bogofet Wrote: [ -> ]@jurialmunkey, hmm, I'm not sure what's going on. I updated from github and double checked time zone and regional settings and it still shows, for example, the simpsons on monday. I get the same results on both androidtv and windows pc. ADT is my timezone.

Because that's the time that it airs in ADT timezone according to Trakt...
I changed my timezone on Trakt website to ADT and this is the result:

Image
Thanks for taking the time. So when I look at settings at trakt website I have it set to (GMT-4:00 atlantic canada) and shows the correct air time for the simpsons (sunday). I'm not sure what I'm missing lol.
(2020-04-25, 04:14)bogofet Wrote: [ -> ]Thanks for taking the time. So when I look at settings at trakt website I have it set to (GMT-4:00 atlantic canada) and shows the correct air time for the simpsons (sunday). I'm not sure what I'm missing lol.

Hmm. Now it is showing Sunday 8pm for me too but before it definitely showed Monday 1am for that timezone. My normal timezone is AEDT (GMT +10), so Simpsons usually displays as 10am Monday for me -- so the timezone was changed when I took the screenshot because it didn't match my timezone either. So not sure what is happening there - possible that there was some issue with Trakt website but the data from the API is fine, so looks unrelated and just a coincidence.

What does your Kodi log say? Are there any errors? Possible that the python time module can't read your system timezone info.
(2020-04-24, 03:39)jurialmunkey Wrote: [ -> ]@bsoriano - Just an FYI that I've now split the function out into its own script so that TMDbHelper can still be optional.
https://github.com/jurialmunkey/script.skinvariables

@jurialmunkey, thanks! On an unrelated note, I saw that you included image blur to this addon, how do you use it? I didn't find it in the wiki.

Regards,

Bart
(2020-04-25, 16:04)bsoriano Wrote: [ -> ]
(2020-04-24, 03:39)jurialmunkey Wrote: [ -> ]@bsoriano - Just an FYI that I've now split the function out into its own script so that TMDbHelper can still be optional.
https://github.com/jurialmunkey/script.skinvariables

@jurialmunkey, thanks! On an unrelated note, I saw that you included image blur to this addon, how do you use it? I didn't find it in the wiki.

Regards,

Bart

Updated the wiki with documentation:
https://github.com/jurialmunkey/plugin.v...ur-monitor

It is much simpler than colorbox.
If you have the service monitor running, just do Skin.ToggleSetting(TMDbHelper.EnableBlur) to turn it on/off.
There's no special multiimage ID controls - the source image just comes directly from whatever item is active in the service monitor.
(2020-04-25, 17:58)bogofet Wrote: [ -> ]@jurialmunkey, here's a log - https://paste.kodi.tv/juvemecike.kodi

Not much in there. Need to turn on debug logging to get more details.
Settings > System > Logging > Enable debug logging
oops, hopefully this is better - https://paste.kodi.tv/fedubiqita.kodi
(2020-04-26, 02:59)bogofet Wrote: [ -> ]oops, hopefully this is better - https://paste.kodi.tv/fedubiqita.kodi

Is it the actual date of the item that is wrong or is it the folder of the calendar that is wrong? I have a feeling that maybe the date is correct but the item is showing the wrong folder -- e.g. Something airing Sunday night will show correct date of 26/04/2020 but the item will show in the Monday folder?

If that's the case, I think I might know what the issue is.
@bogofet - Can you try latest version (2.4.38) and see if that fixes the issue?
Yup, looks like you fixed it. Thanks very much.
@jurialmunkey , I installed the latest version of the plugin, and wanted to test the Next Aired Library function.  I am getting this in the log (debug logging for the addon and Kodi are on):

xml:

2020-04-27 17:52:26.770 T:15540  NOTICE: [plugin.video.themoviedb.helper]
                                            TMDbHelper - JSONRPC Error:
                                            'utf8' codec can't decode byte 0xa1 in position 4: invalid start byte
2020-04-27 17:52:26.770 T:15540  NOTICE: [plugin.video.themoviedb.helper]
                                            Unable to retrive tvshow KodiDB!
                                            Attempting to Reconnect - Attempt 1
2020-04-27 17:52:27.966 T:15540  NOTICE: [plugin.video.themoviedb.helper]
                                            TMDbHelper - JSONRPC Error:
                                            'utf8' codec can't decode byte 0xa1 in position 4: invalid start byte
2020-04-27 17:52:27.966 T:15540  NOTICE: [plugin.video.themoviedb.helper]
                                            Unable to retrive tvshow KodiDB!
                                            Attempting to Reconnect - Attempt 2
2020-04-27 17:52:29.160 T:15540  NOTICE: [plugin.video.themoviedb.helper]
                                            TMDbHelper - JSONRPC Error:
                                            'utf8' codec can't decode byte 0xa1 in position 4: invalid start byte
2020-04-27 17:52:29.160 T:15540  NOTICE: [plugin.video.themoviedb.helper]
                                            Unable to retrive tvshow KodiDB!
                                            Attempting to Reconnect - Attempt 3
2020-04-27 17:52:30.355 T:15540  NOTICE: [plugin.video.themoviedb.helper]
                                            TMDbHelper - JSONRPC Error:
                                            'utf8' codec can't decode byte 0xa1 in position 4: invalid start byte
2020-04-27 17:52:30.355 T:15540  NOTICE: [plugin.video.themoviedb.helper]
                                            Unable to retrive tvshow KodiDB!
                                            Attempting to Reconnect - Attempt 4
2020-04-27 17:52:31.561 T:15540  NOTICE: [plugin.video.themoviedb.helper]
                                            TMDbHelper - JSONRPC Error:
                                            'utf8' codec can't decode byte 0xa1 in position 4: invalid start byte
2020-04-27 17:52:31.561 T:15540  NOTICE: [plugin.video.themoviedb.helper]
                                            Unable to retrive tvshow KodiDB!
                                            Attempting to Reconnect - Attempt 5
2020-04-27 17:52:31.561 T:15540  NOTICE: [plugin.video.themoviedb.helper]
                                            Getting KodiDB tvshow FAILED!

If I go to the trakt calendar for today, the addon returns the correct info.  Any ideas? Thanks for your help.

Regards,

Bart
(2020-04-27, 23:55)bsoriano Wrote: [ -> ]@jurialmunkey , I installed the latest version of the plugin, and wanted to test the Next Aired Library function.  I am getting this in the log (debug logging for the addon and Kodi are on):

xml:

2020-04-27 17:52:26.770 T:15540  NOTICE: [plugin.video.themoviedb.helper]
                                            TMDbHelper - JSONRPC Error:
                                            'utf8' codec can't decode byte 0xa1 in position 4: invalid start byte
2020-04-27 17:52:26.770 T:15540  NOTICE: [plugin.video.themoviedb.helper]
                                            Unable to retrive tvshow KodiDB!
                                            Attempting to Reconnect - Attempt 1
2020-04-27 17:52:27.966 T:15540  NOTICE: [plugin.video.themoviedb.helper]
                                            TMDbHelper - JSONRPC Error:
                                            'utf8' codec can't decode byte 0xa1 in position 4: invalid start byte
2020-04-27 17:52:27.966 T:15540  NOTICE: [plugin.video.themoviedb.helper]
                                            Unable to retrive tvshow KodiDB!
                                            Attempting to Reconnect - Attempt 2
2020-04-27 17:52:29.160 T:15540  NOTICE: [plugin.video.themoviedb.helper]
                                            TMDbHelper - JSONRPC Error:
                                            'utf8' codec can't decode byte 0xa1 in position 4: invalid start byte
2020-04-27 17:52:29.160 T:15540  NOTICE: [plugin.video.themoviedb.helper]
                                            Unable to retrive tvshow KodiDB!
                                            Attempting to Reconnect - Attempt 3
2020-04-27 17:52:30.355 T:15540  NOTICE: [plugin.video.themoviedb.helper]
                                            TMDbHelper - JSONRPC Error:
                                            'utf8' codec can't decode byte 0xa1 in position 4: invalid start byte
2020-04-27 17:52:30.355 T:15540  NOTICE: [plugin.video.themoviedb.helper]
                                            Unable to retrive tvshow KodiDB!
                                            Attempting to Reconnect - Attempt 4
2020-04-27 17:52:31.561 T:15540  NOTICE: [plugin.video.themoviedb.helper]
                                            TMDbHelper - JSONRPC Error:
                                            'utf8' codec can't decode byte 0xa1 in position 4: invalid start byte
2020-04-27 17:52:31.561 T:15540  NOTICE: [plugin.video.themoviedb.helper]
                                            Unable to retrive tvshow KodiDB!
                                            Attempting to Reconnect - Attempt 5
2020-04-27 17:52:31.561 T:15540  NOTICE: [plugin.video.themoviedb.helper]
                                            Getting KodiDB tvshow FAILED!

If I go to the trakt calendar for today, the addon returns the correct info.  Any ideas? Thanks for your help.

Regards,

Bart


Full log please.

I can't replicate - working fine for me on both Leia and Matrix. Need the full log to see what is happening.