Kodi Community Forum
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 - WayneD - 2014-03-28

(2014-03-28, 00:08)RavRob Wrote: One HTPC working, the other isn't. Both with Gotham beta 2 and both running Windows 7.
The one that is failing is trying to convert a date, but failing because it thinks that the data is a tuple instead of a string. The easiest solution for that host is probably to choose the reset-and-update option out of the settings, which should fix up the weird corruption.

Techno-babble: I actually saw some tuples stored for dates just recently when doing some experimenting with the tzwin support in dateutil (where it tries to take advantage of windows' timezone calls). I'm imagining that your one host got some wacky airtime data stored a while back when the tzwin code was still enabled (it's been gone for a little while now). I'm thinking that you won't see a similar failure in data processed by the latest code.

Thanks for the helpful log data!

..wayne..


RE: TV Show Next Aired (Script) Addon, now w/TheTVDB data - warlion - 2014-03-28

wayne question how difficult can it be to add a notification when a show is about to be on air?

to be honest i will love to see something like that but is not big a deal just an idea.

thanks Wayne for you amazing work


RE: TV Show Next Aired (Script) Addon, now w/TheTVDB data - WayneD - 2014-03-29

(2014-03-28, 21:11)warlion Wrote: how difficult can it be to add a notification when a show is about to be on air?
What kind of a notification are you thinking of? An xbmc one, such as this?
Code:
xbmc.executebuiltin("Notification('Title','Message')")
That might be pretty easy to have the background process call that, if the user so desires. I'll make a note to look into that.

..wayne..


RE: TV Show Next Aired (Script) Addon, now w/TheTVDB data - warlion - 2014-03-29

cool thanks wayne that will be amazing Smile


RE: TV Show Next Aired (Script) Addon, now w/TheTVDB data - Vaikin - 2014-03-29

or annoying Smile

If you're going to add it, definitely make an option for on/off.


RE: TV Show Next Aired (Script) Addon, now w/TheTVDB data - warlion - 2014-03-29

Wayne i had a problem with a show Dads (2013)

01:12:54 T:5536 DEBUG: script.tv.show.next.aired: ### params: {'updateshow': 'Dads (2013)'}
01:12:54 T:5536 NOTICE: script.tv.show.next.aired: ### TV Show - Next Aired starting GUI proc (6.0.7)
01:12:54 T:5536 DEBUG: script.tv.show.next.aired: ### update_show started

01:14:50 T:13216 DEBUG: script.tv.show.next.aired: ### find_show_id(Dads (2013), 269589, 2013, True)
01:14:50 T:13216 DEBUG: script.tv.show.next.aired: ### no match found

http://www.thetvdb.com/?tab=series&id=269589


the script cant find it no mather what i do you had a subjection?
not errors on the log


RE: TV Show Next Aired (Script) Addon, now w/TheTVDB data - WayneD - 2014-03-29

(2014-03-29, 09:19)warlion Wrote: Wayne i had a problem with a show Dads (2013)
Their search API can be really bad sometimes. A search for "Dads" returns only 6 shows, none of which is "Dads (2013)". I've tweaked the re-try code so that it does a fall-back search of the full name, which then finds the show.

..wayne..


RE: TV Show Next Aired (Script) Addon, now w/TheTVDB data - impydave - 2014-03-29

(2014-03-26, 18:45)thewarm Wrote: [quote='WayneD' pid='1662512' dateline='1395701507']
My favorite skin for clean TV and Movie views is Amber. I would really like to add the next aired info while browsing the TV shows.
Anyway, thanks for a great addon!!!

Another Amber lover here !! would love to see the next episode info when browsing through TV shows also, but I guess this would need adding in the Amber skin?


RE: TV Show Next Aired (Script) Addon, now w/TheTVDB data - warlion - 2014-03-29

(2014-03-29, 19:57)WayneD Wrote:
(2014-03-29, 09:19)warlion Wrote: Wayne i had a problem with a show Dads (2013)
Their search API can be really bad sometimes. A search for "Dads" returns only 6 shows, none of which is "Dads (2013)". I've tweaked the re-try code so that it does a fall-back search of the full name, which then finds the show.

..wayne..

Thanks Wayne its working now thanks so much


wayne i had a question for you, im trying to add a Flag on the views with (NextAired.Today)

<value condition="substring(Window(Home).Property(NextAired.Today),True)">wall/boxes/wall_tvshow_NextAired.png</value>

it is working but only for the show that im selecting is any way possible to use
(NextAired(-1).Today)
(NextAired.Today)
(NextAired(1).Today)
to show the flag all around?

im using this for posters
$INFO[ListItem(-1).Art(tvshow.poster)]
$INFO[ListItem.Art(tvshow.poster)]
$INFO[ListItem(1).Art(tvshow.poster)]

and the flag for VideoExtras script
$INFO[ListItem(-1).DBID,special://profile/addon_data/script.videoextras/TVShows/,.png]
$INFO[ListItem.DBID,special://profile/addon_data/script.videoextras/TVShows/,.png]
$INFO[ListItem(1).DBID,special://profile/addon_data/script.videoextras/TVShows/,.png]


RE: TV Show Next Aired (Script) Addon, now w/TheTVDB data - RavRob - 2014-03-30

(2014-03-28, 00:33)WayneD Wrote:
(2014-03-28, 00:08)RavRob Wrote: One HTPC working, the other isn't. Both with Gotham beta 2 and both running Windows 7.
The one that is failing is trying to convert a date, but failing because it thinks that the data is a tuple instead of a string. The easiest solution for that host is probably to choose the reset-and-update option out of the settings, which should fix up the weird corruption

..wayne..

Tx Wayne. That did it. all good on both machine now.


RE: TV Show Next Aired (Script) Addon, now w/TheTVDB data - WayneD - 2014-03-31

(2014-03-30, 15:48)RavRob Wrote: Tx Wayne. That did it. all good on both machine now.
Sadly, I did discover that there was a bug in one branch of the code that could introduce a tuple into the data if the show's start time changes without any episode changes (all caused by a silly dangling comma in the code). The latest zip & git have this fixed.

Anyone who runs into the issue can either do a reset & update, a targeted one-show update (if it is clear which show is causing the issue), or it should also clear up if someone updates an episode in the show with the changed start time.

..wayne..


RE: TV Show Next Aired (Script) Addon, now w/TheTVDB data - warlion - 2014-03-31

Wayne i notice something really interesting
if the show dont had a nextshow or season like (the Walking dead, Comic book men , The Musketeers)
those shows will not appear in container 200 (yesterday)
Image


RE: TV Show Next Aired (Script) Addon, now w/TheTVDB data - WayneD - 2014-03-31

(2014-03-29, 21:01)warlion Wrote: it is working but only for the show that im selecting is any way possible to use
(NextAired(-1).Today)
(NextAired.Today)
(NextAired(1).Today)
to show the flag all around?
I'm not entirely sure what you're asking here. The NextAired.Today flag is set in a show's data if the show is on today. You want a flag for NextAired.Yesterday and NextAired.Tomorrow? Or you want some kind of a more general day mechanism?

..wayne..


RE: TV Show Next Aired (Script) Addon, now w/TheTVDB data - WayneD - 2014-03-31

(2014-03-31, 09:08)warlion Wrote: if the show dont had a nextshow or season like (the Walking dead, Comic book men , The Musketeers)
those shows will not appear in container 200 (yesterday)
That is indeed quite interesting. I believe I have a fix for that checked in now. Thanks!

..wayne..


RE: TV Show Next Aired (Script) Addon, now w/TheTVDB data - warlion - 2014-03-31

(2014-03-31, 21:37)WayneD Wrote:
(2014-03-31, 09:08)warlion Wrote: if the show dont had a nextshow or season like (the Walking dead, Comic book men , The Musketeers)
those shows will not appear in container 200 (yesterday)
That is indeed quite interesting. I believe I have a fix for that checked in now. Thanks!

..wayne..

yes is working perfect now thanks Wayne

for the Flag i would love to use it on Container.Content(tvshows) using $INFO[Window(Home).Property(NextAired.AirsToday)] work perfect for the item you had selected but is not very good to use it as a flag if we could use something like $INFO[ListItem.AirsToday] or something similar to use the the option of the listitems (-1),(0),(1) to show a flag on all the visible Tvshows

hope you understand lol English is not my mother language