Kodi Community Forum
[RELEASE] TV Show Next Aired (Script) Addon - 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 (/showthread.php?tid=79493)



- frellAn - 2011-09-08

How do you launch this at startup without the whole interface freezing up?


- BigNoid - 2011-09-08

frellAn Wrote:How do you launch this at startup without the whole interface freezing up?

Code:
XBMC.RunScript(script.tv.show.next.aired,silent=True)

This shouldn't give problems, unless you are also running a few other scripts at start up also. If that is the case you can delay the next aired like this (10 sec example):
Code:
XBMC.AlarmClock(NextAired,XBMC.RunScript(script.tv.show.next.aired,silent=True),00:00:10,true)



- DR9x - 2011-09-11

warlion Wrote:im having problem with this addon im using dharma 10.1 and skin neon any one is having problem with this addon i just love it and i really use it

Wanted to comment, I have the same issue with Neon and nightly build.

I click refresh and I get a error.


- samzstein - 2011-09-20

all of the logos and posters have stopped displaying....please help
pastetbin...
http://pastebin.com/WFfx5mQ1


- ronie - 2011-09-20

samzstein Wrote:all of the logos and posters have stopped displaying....please help
pastetbin...
http://pastebin.com/WFfx5mQ1

Debug Log please.


- Martijn - 2011-09-20

ronie Wrote:Debug Log please.
Doesn't work with me either. Using nightly September 18
Here's a full log.
http://pastebin.com/QyR62spx


- ronie - 2011-09-20

Machine-Sanctum Wrote:Doesn't work with me either. Using nightly September 18
Here's a full log.
http://pastebin.com/QyR62spx

cheers mate.

there's a bug in xbmc that prevent the script from fetching the tv show path.
it's also affecting logo-downloader and tv-tunes.

i'll create a ticket for it.


- Martijn - 2011-09-20

ronie Wrote:cheers mate.

there's a bug in xbmc that prevent the script from fetching the tv show path.
it's also affection logo-downloader and tv-tunes.

i'll create a ticket for it.

Yeah that's what i thought. It also broke Trakt Utilities. I can imagine there are more.


- ronie - 2011-09-20

all issues should be fixed in the upcoming xbmc nightly build.

as a side-effect, it's also gonna need an updated version of the script:
version 3.0.3 is now available in the pre-eden addon repo.

again:
you will be needing the next xbmc nightly build for it.


changelog:
v3.0.3
- adjusted to latest json-rpc changes
- fixed tv show title in info dialog
- fixed closing the script
- fixed json query when compactoutput was set to false


- Martijn - 2011-09-20

Thanks.


- Rygrath - 2011-09-21

Thank you Ronie for keeping all these scripts up to date.


- `Black - 2011-09-21

What do you guys think of a little update to the next_aired_dialog? There are several skins out there now which have a TVGuide but the implementation is firstly static and secondly inefficient, e.g. TVGuide in Transparency has several 1000 lines of code and the loading time is very slow.

I did a quick update to the next_aired_dialog.py... there are now 7 lists for each weekday filled with the tv shows from the "nextlist". I still have to change the default skin but so far it's working.

Another thing would be the optimization for the next aired info which some skins, again for example Transparency, display for tv shows. But I don't think this could be optimized without some additions to XBMC. Currently the info is limited to the number the skinner implements and each info has a visible condition like this:

Code:
StringCompare(Window(Home).Property(NextAired.1.ShowTitle),ListItem.TVShowTitle)

It would be much better to have only one group instead of 30, 50 or 100 but that would require something like this for the label(s) which is currently not possible:

Code:
<label>$INFO[Window(home).property(NextAired.[b]$INFO[ListItem.TVShowID][/b].NextTitle)]</label>



- ronie - 2011-09-21

`Black Wrote:What do you guys think of a little update to the next_aired_dialog? There are several skins out there now which have a TVGuide but the implementation is firstly static and secondly inefficient, e.g. TVGuide in Transparency has several 1000 lines of code and the loading time is very slow.

I did a quick update to the next_aired_dialog.py... there are now 7 lists for each weekday filled with the tv shows from the "nextlist". I still have to change the default skin but so far it's working.

hey, clever thinking! i really like the idea :-)

makes indeed far more sense if the script would provide the tv guide,
instead of skins having to construct their own with a shitload of visible conditions.

and every skin can include their own customized version of DialogNextAired.xml
`Black Wrote:Another thing would be the optimization for the next aired info which some skins, again for example Transparency, display for tv shows. But I don't think this could be optimized without some additions to XBMC. Currently the info is limited to the number the skinner implements and each info has a visible condition like this:

Code:
StringCompare(Window(Home).Property(NextAired.1.ShowTitle),ListItem.TVShowTitle)

It would be much better to have only one group instead of 30, 50 or 100 but that would require something like this for the label(s) which is currently not possible:

Code:
<label>$INFO[Window(home).property(NextAired.[b]$INFO[ListItem.TVShowID][/b].NextTitle)]</label>

i'm thinking maybe i could change the script to function somewhat like the tv tunes script.
the skin will have to launch it when entering MyVideoNav.xml,
and the script will monitor the selected item and provide the nextaired data
of the selected show as window properties to the skin...

makes sense?


- BigNoid - 2011-09-21

That would be great! That way you don't have to filter out the canceled and ended shows, so we would always have the proper show status and last aired episode.


- `Black - 2011-09-21

ronie Wrote:i'm thinking maybe i could change the script to function somewhat like the tv tunes script.
the skin will have to launch it when entering MyVideoNav.xml,
and the script will monitor the selected item and provide the nextaired data
of the selected show as window properties to the skin...

makes sense?

That sounds like a good idea. I'll make a basic Confluence based skin for my updated next aired dialog so you can test it.