Add-on:TV Show - Next Aired

= Introduction =

The script will scan your library and tries to fetch next aired info for every show. There is no need to specify an alarm -- the script will will run a background update at regular intervals.

= Skin integration =

Dependency
Add this to your addon.xml to make it install along with your skin.  

Note: Please check on what minimum version you need and change it accordingly

Run at startup
To make sure the script updates on starting XBMC add code below to Startup.xml RunScript(script.tv.show.next.aired,silent=True)

= Available infolabels =

Airing today
For shows that are airing today, the script will set the window properties listed below.


 * Window(Home).Property(*)

MyVideoNav.xml
If you want to use this script you must first make sure you start it using either: RunScript(script.tv.show.next.aired,backend=True)

or make a call for each show when the user changes shows: RunScript(script.tv.show.next.aired,tvshowtitle=The TvShowTitle Show Name)

The script will run in the background and provide next aired info for the focussed listitem. The infolabels listed above are available, using this format: Window(Home).Property(*)

Use code below as a visible condition! !IsEmpty(Window(Home).Property(NextAired.NextDate))

example code: !IsEmpty(Window(Home).Property(NextAired.NextDate)) 0            0             800             20             $INFO[Window(Home).Property(NextAired.NextTitle)] 0            20             800             20             $INFO[Window(Home).Property(NextAired.NextDate)]

TV Guide
If you run the script without any options (or if it's started by the user), the script will provide a TV Guide window using either script-NextAired-TVGuide.xml or script-NextAired-TVGuide2.xml

The former is the Monday-week guide and the latter is the today-week guide. These windows are fully skinnable.

Totals are available using the window properties listed above.

A list of available infolabels, related to the available add-on settings:

All other IDs and properties in the default script window are optional and not required by the script.

Force update
To force an update of the next-aired database ahead of its next scheduled time: Forcing an update of the next-aired database will look for updates related to your shows and grab any changed info. RunScript(script.tv.show.next.aired,force=True)

To force an update as well as reset all the existing data (forcing a fresh scan of everything) use the reset option: RunScript(script.tv.show.next.aired,reset=True)

The force update and reset options are also available in the addon settings.

To force an update of a single show (which always grabs the full data for that show): RunScript(script.tv.show.next.aired,updateshow=TvShowTitle Goes Here)

The latter can be achieved with a button like this one:

 $LOCALIZE[24069] $LOCALIZE[4] DialogVideoInfoButton RunScript(script.tv.show.next.aired,updateshow=$INFO[ListItem.Label]) Container.Content(tvshows)