Release TV Show Next Aired (Script) Addon, now w/TheTVDB data - 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 TV Show Next Aired (Script) Addon, now w/TheTVDB data (/showthread.php?tid=186090) |
RE: TV Show Next Aired (Script) Addon, now w/TheTVDB data - mr.igor - 2023-01-06 @gemini88 With help from @Angelinas I have it working again. Using TVdb API V2 1.0.34 and Next Aired 8.0.3, both direct from github. I had to comment out some lines in the API V2 module as per the issue logged by 'berkhornet' on github. I can help out if you need some more info on how to do this. Also, I have asked the TVdb people about the V2 API. If I get an answer back I will post it here. Many thanks to @Angelinas . RE: TV Show Next Aired (Script) Addon, now w/TheTVDB data - gemini88 - 2023-01-07 Yes brother I appreciate you would love the help I've done the deleting and added the line of code for replacement to the tmdb.py but still nothing I have 1.0.34 and 8.0.3 RE: TV Show Next Aired (Script) Addon, now w/TheTVDB data - mr.igor - 2023-01-07 (2023-01-07, 01:30)gemini88 Wrote: Yes brother I appreciate you would love the help I've done the deleting and added the line of code for replacement to the tmdb.py but still nothing I have 1.0.34 and 8.0.3 I encourage you to install the Log Viewer addon so you can conveniently watch for errors. First, make sure the Next Aired settings have "Today" selected and not "Monday" as start of the week. The only other thing I had to do was comment out the following lines (add a # mark at the beginning of the line): # if cast: # for count, item in enumerate(cast): # if count < 4: # result["cast.%s.tvdbname" % count] = item["name"] # result["cast.%s.tvdbrole" % count] = item["role"] # result["cast.%s.tvdbthumb" % count] = "https://artworks.thetvdb.com/banners/%s" % item["image"] Around line 543 Be very careful typing. Python will barf if you use a tab or put in the wrong number of leading spaces. All you are doing is inserting a # character at the beginning of the line. Don't insert or delete a space on another line. If you are getting the same error as I did then this should fix it. You said "tmdb.py". That is incorrect. The file you want is "thetvdb.py" and is in the directory ....addons/script.module.thetvdb/lib/ The first time it may take quite a while before you get a display. If you watch the log and no errors are thrown then you should be confident it is working. Go have a cup of tea while it crunches your library. Let me know if you need help with the log viewer. RE: TV Show Next Aired (Script) Addon, now w/TheTVDB data - gemini88 - 2023-01-07 Lol yh that was the first to come to mind 🤣 tmdb.py I thought I saw that definitely didn't thanks brother I appreciate you. will follow instructions after I finish watching ginny and Georgia and I will also download log viewer as well RE: TV Show Next Aired (Script) Addon, now w/TheTVDB data - gemini88 - 2023-01-07 @mr.igor the last combination that I had was 1.0.34 and 8.0.3 and it wouldn't even open RE: TV Show Next Aired (Script) Addon, now w/TheTVDB data - mr.igor - 2023-01-07 @gemini88 It is important for you to see the log file. When I run "Next Aired", the first thing that gets logged is: 2023-01-06 23:01:28.251 T:5118 INFO <general>: initializing python engine. 2023-01-06 23:01:30.059 T:5118 INFO <general>: script.module.thetvdb --> Initialized Then 10 seconds later: 2023-01-06 23:01:38.3>: Loading skin file: /storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.tv.show.next.aired/resources/skins/Default/1080i/script-NextAired-TVGuide2.xml, load type: LOAD_ON_GUI_INIT When the display loads. RE: TV Show Next Aired (Script) Addon, now w/TheTVDB data - rafikW - 2023-01-07 and nothing shows up on the screen. RE: TV Show Next Aired (Script) Addon, now w/TheTVDB data - Angelinas - 2023-01-07 Change setings for script.tv.show.next.aired or delete Kodi\userdata\addon_data\settings.xml...you use old version settings.xml. RE: TV Show Next Aired (Script) Addon, now w/TheTVDB data - rafikW - 2023-01-07 And now something new:
RE: TV Show Next Aired (Script) Addon, now w/TheTVDB data - rafikW - 2023-01-07 (2023-01-07, 12:54)Angelinas Wrote: Change setings for script.tv.show.next.aired or delete Kodi\userdata\addon_data\settings.xml...you use old version settings.xml.I did that, I see new settings.xml is created, then I set configuration to suite my needs as follow:
but still nothing is shows up but at least this warning: Exception in resources.lib.main_module ! --> string indices must be integers is no more. RE: TV Show Next Aired (Script) Addon, now w/TheTVDB data - rafikW - 2023-01-07 Something is really wired. I have deleted settings.xml, opened add-on settings and left default values and confirmed settings.xml file is created, then restarted Odroid-N2 and just after these actions:
RE: TV Show Next Aired (Script) Addon, now w/TheTVDB data - rafikW - 2023-01-07 What a surprise... when I was scrolling my series library and pointed cursor over this series it popup on the bottom information about next season when starting :-) So apparently it works with reading information from tvdb but there is an issue with showing results on the screen. RE: TV Show Next Aired (Script) Addon, now w/TheTVDB data - Angelinas - 2023-01-07 which scraper you use ? your scraper have showdetails["status"] and id is not from tvdb Change this line in tvdb,py row 532-534 Code: def _map_series_data(self, showdetails): something like this Code: 2023-01-07 12:41:51.675 T:64696 INFO <general>: script.module.thetvdb --> Exception in get_series_data_tz {'id': 0, 'seriesId': '', 'seriesName': None, 'aliases': None, 'season': '', 'poster': '', 'banner': '', 'fanart': '', 'status': '', 'firstAired': '', 'network': '', 'networkId': '', 'runtime': '', 'language': '', 'genre': None, 'overview': None, 'lastUpdated': 0, 'airsDayOfWeek': '', 'airsTime': '', 'rating': None, 'imdbId': '', 'zap2itId': '', 'added': '', 'addedBy': None, 'siteRating': 0, 'siteRatingCount': 0, 'slug': ''}--> RE: TV Show Next Aired (Script) Addon, now w/TheTVDB data - mr.igor - 2023-01-07 @rafikW @Angelinas This is a known problem with TheTVdb API V2 addon as per this issue: https://github.com/kodi-community-addons/script.module.thetvdb/issues/11 Find and comment out the lines indicated at the end of the issue text. As @Angelinas said, identifying and rescraping the problem show should work but it will likely happen again if you have more in your library like that. RE: TV Show Next Aired (Script) Addon, now w/TheTVDB data - rafikW - 2023-01-07 Guys, I'm using "The TVDB v4" version 1.1.4 https://kodi.wiki/view/Add-on:The_TVDB_v4 I have added these lines: self._log_msg("Exception in get_series_data_tz %s--> " % (showdetails)) result = {} as well as commented lines: #if cast: #for count, item in enumerate(cast): #if count < 4: #result["cast.%s.tvdbname" % count] = item["name"] #result["cast.%s.tvdbrole" % count] = item["role"] #result["cast.%s.tvdbthumb" % count] = "https://artworks.thetvdb.com/banners/%s" % item["image"] following https://github.com/kodi-community-addons/script.module.thetvdb/issues/11 result:
So as I understand the issue is caused by this series: https://thetvdb.com/series/magia-wielkiego-blekitu but how to make it fixed? |