Kodi Community Forum
tv show next aired script - new features for skinners - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+---- Forum: Skin helper addons (https://forum.kodi.tv/forumdisplay.php?fid=300)
+---- Thread: tv show next aired script - new features for skinners (/showthread.php?tid=111986)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15


- fmronan - 2011-11-20

Why this property don't work in "Home"
I run the script in startup.xml with
XBMC.RunScript(script.tv.show.next.aired,silent=True)
In my log that's good , I can see the property, but that's not good if I use a list in a widget

Code:
                            <item id="1">
                                <label>$INFO[Window(Home).Property(NextAired.1.NextDate)] $LOCALIZE[35139] $INFO[Window(Home).Property(NextAired.1.shortime)]</label>
                                <label2>$INFO[Window(Home).Property(NextAired.1.shortime)]</label2>
                                <onclick>SetProperty(NextAired.NextTitle,&quot;$INFO[Window(Home).Property(NextAired.1.NextTitle)]&quot;)</onclick>
                                <onclick>SetProperty(NextAired.ep_img,&quot;$INFO[Window(Home).Property(NextAired.1.ep_img)]&quot;)</onclick>
                                <onclick>SetProperty(NextAired.Network,&quot;$INFO[Window(Home).Property(NextAired.1.Network)]&quot;)</onclick>
                                <onclick>SetProperty(NextAired.NextDate,&quot;$INFO[Window(Home).Property(NextAired.1.NextDate)]&quot;)</onclick>
                                <onclick>SetProperty(NextAired.ShowTitle,&quot;$INFO[Window(Home).Property(NextAired.1.ShowTitle)]&quot;)</onclick>
                                <onclick>SetProperty(NextAired.Airtime,&quot;$INFO[Window(Home).Property(NextAired.1.Airtime)]&quot;)</onclick>
                                <onclick>SetProperty(NextAired.NextNumber,&quot;$INFO[Window(Home).Property(NextAired.1.NextNumber)]&quot;)</onclick>
                                <onclick>SetProperty(NextAired.Status,&quot;$INFO[Window(Home).Property(NextAired.1.Status)]&quot;)</onclick>
                                <onclick>SetProperty(NextAired.Runtime,&quot;$INFO[Window(Home).Property(NextAired.1.Runtime)]&quot;)</onclick>
                                <onclick>SetProperty(NextAired.LatestTitle,&quot;$INFO[Window(Home).Property(NextAired.1.LatestTitle)]&quot;)</onclick>
                                <onclick>SetProperty(NextAired.LatestDate,&quot;$INFO[Window(Home).Property(NextAired.1.LatestDate)]&quot;)</onclick>
                                <onclick>SetProperty(NextAired.LatestNumber,&quot;$INFO[Window(Home).Property(NextAired.1.LatestNumber)]&quot;)</onclick>
                                <onclick>ActivateWindow(1117)</onclick>
                                <icon>$INFO[Window(Home).Property(NextAired.1.Network),special://skin/backgrounds/Studios/,.png]</icon>
                                <thumb>$INFO[Window(Home).Property(NextAired.1.Showpath)]</thumb>
                                
                            </item>
sorry for my englishConfused


- ronie - 2011-11-20

fmronan Wrote:Why this property don't work in "Home"

which property doesn't work?

i see two in your code that need to be changed:
NextAired.1.shortime > NextAired.1.ShorTime
NextAired.1.ep_img > NextAired.1.Thumb
the rest should work fine.


- fmronan - 2011-11-21

I made the change but it does not work, I find the information NextAired in my log file.
Code:
script.playlists: playlists: [('Comedie Fr', 'special://profile/playlists/video/BA.xsp'), ('Jean', 'special://profile/playlists/video/Jean.xsp'), ('FILMSAGA', 'special://profile/playlists/video/FILMSAGA.xsp'), ('film', 'special://profile/playlists/video/film.xsp'), ('enfants', 'special://profile/playlists/video/enfants.xsp')]
23:04:06 T:2865740656   DEBUG: ### params: {'silent': 'True'}
23:04:06 T:2865740656   DEBUG: ### db less than 24h old, fetch local data...
23:04:06 T:2865740656   DEBUG: ### Load list: /home/guevel/.xbmc/userdata/addon_data/script.tv.show.next.aired/next_aired.db
23:04:06 T:2865740656   DEBUG: ### data available
23:04:06 T:2865740656   DEBUG: ### next list: 5 shows ### [{'ep_img': u'special://masterprofile/Thumbnails/Video/d/da12a50a.tbn', 'Genres': 'Action | Adventure | Discovery/Science | Drama | Mystery', 'Network': 'FOX', 'Airtime': 'Friday at 03:00', 'Country': 'USA', 'Next Episode': '07x04^The Male in the Mail^Dec/01/2011', 'localname': u'Bones', 'Status': 'Returning Series', 'NextTitle': 'The Male in the Mail', 'Ended': '', 'fanart': u'special://masterprofile/Thumbnails/Video/Fanart/da12a50a.tbn', 'dbid': 'videodb://2/2/14/', 'Latest Episode': '07x03^The Prince in the Plastic^Nov/17/2011', 'Show ID': '2870', 'NextDate': '02/12/2011', 'thumbnail': u'special://masterprofile/Thumbnails/Video/d/da12a50a.tbn', 'GMT+0 NODST': '1322787600', 'Show Name': 'Bones', 'Premiered': '2005', 'path': u'/media/Disq500GO/Mes vid\xe9os/Series/Bones/', 'Runtime': '60', 'NextNumber': '07x04', 'RFC3339': '2011-12-02T03:00:00+01:00', 'Classification': 'Scripted', 'Show URL': 'http://www.tvrage.com/Bones', 'Started': 'Sep/13/2005'}, {'ep_img': u'special://masterprofile/Thumbnails/Video/8/8b840218.tbn', 'Genres': 'Crime | Drama', 'Network': 'Showtime', 'Airtime': 'Monday at 03:00', 'Country': 'USA', 'Next Episode': '06x08^Sins of Omission^Nov/20/2011', 'localname': u'Dexter', 'Status': 'Returning Series', 'NextTitle': 'Sins of Omission', 'Ended': '', 'fanart': u'special://masterprofile/Thumbnails/Video/Fanart/8b840218.tbn', 'dbid': 'videodb://2/2/12/', 'Latest Episode': '06x07^Nebraska^Nov/13/2011', 'Show ID': '7926', 'NextDate': '21/11/2011', 'thumbnail': u'special://masterprofile/Thumbnails/Video/8/8b840218.tbn', 'GMT+0 NODST': '1321837200', 'Show Name': 'Dexter', 'Premiered': '2006', 'path': u'/media/Disq500GO/Mes vid\xe9os/Series/Dexter/', 'Runtime': '60', 'NextNumber': '06x08', 'RFC3339': '2011-11-21T03:00:00+01:00', 'Classification': 'Scripted', 'Show URL': 'http://www.tvrage.com/Dexter', 'Started': 'Oct/01/2006'}, {'ep_img': u'special://masterprofile/Thumbnails/Video/2/268425f6.tbn', 'Genres': 'Action | Drama | Fantasy', 'Network': 'HBO', 'Airtime': 'Monday at 04:00', 'Country': 'USA', 'Next Episode': '02x01^Season 2, Episode 1^Apr/15/2012', 'localname': u'Game of Thrones', 'Status': 'Returning Series', 'NextTitle': 'Season 2, Episode 1', 'Ended': '', 'fanart': u'special://masterprofile/Thumbnails/Video/Fanart/268425f6.tbn', 'dbid': 'videodb://2/2/11/', 'Latest Episode': '01x10^Fire and Blood^Jun/19/2011', 'Show ID': '24493', 'NextDate': '16/04/2012', 'thumbnail': u'special://masterprofile/Thumbnails/Video/2/268425f6.tbn', 'GMT+0 NODST': '1334534400', 'Show Name': 'Game of Thrones', 'Premiered': '2010', 'path': u'/media/Disq500GO/Mes vid\xe9os/Series/Game of thrones/', 'Runtime': '60', 'NextNumber': '02x01', 'RFC3339': '2012-04-16T04:00:00+02:00', 'Classification': 'Scripted', 'Show URL': 'http://www.tvrage.com/Game_of_Thrones', 'Started': 'Dec/10/2010'}, {'ep_img': u'special://masterprofile/Thumbnails/Video/b/b82c218d.tbn', 'Genres': 'Drama', 'Network': 'The CW', 'Airtime': 'Tuesday at 02:00', 'Country': 'USA', 'Next Episode': '05x08^All The Pretty Sources^Nov/21/2011', 'localname': u'Gossip Girl', 'Status': 'Returning Series', 'NextTitle': 'All The Pretty Sources', 'Ended': '', 'fanart': u'special://masterprofile/Thumbnails/Video/Fanart/b82c218d.tbn', 'dbid': 'videodb://2/2/10/', 'Latest Episode': '05x07^The Big Sleep No More^Nov/14/2011', 'Show ID': '15619', 'NextDate': '22/11/2011', 'thumbnail': u'special://masterprofile/Thumbnails/Video/b/b82c218d.tbn', 'GMT+0 NODST': '1321920000', 'Show Name': 'Gossip Girl', 'Premiered': '2007', 'path': u'/media/Disq500GO/Mes vid\xe9os/Series/Gossip girl/', 'Runtime': '60', 'NextNumber': '05x08', 'RFC3339': '2011-11-22T02:00:00+01:00', 'Classification': 'Scripted', 'Show URL': 'http://www.tvrage.com/Gossip_Girl', 'Started': 'Sep/19/2007'}, {'ep_img': u'special://masterprofile/Thumbnails/Video/b/b755d42a.tbn', 'Genres': 'Drama | Medical | Mystery', 'Network': 'FOX', 'Airtime': 'Tuesday at 03:00', 'Country': 'USA', 'Next Episode': '08x07^Dead & Buried^Nov/21/2011', 'localname': u'House', 'Status': 'Returning Series', 'NextTitle': 'Dead & Buried', 'Ended': '', 'fanart': u'special://masterprofile/Thumbnails/Video/Fanart/b755d42a.tbn', 'dbid': 'videodb://2/2/9/', 'Latest Episode': '08x06^Parents^Nov/14/2011', 'Show ID': '3908', 'NextDate': '22/11/2011', 'thumbnail': u'special://masterprofile/Thumbnails/Video/b/b755d42a.tbn', 'GMT+0 NODST': '1321923600', 'Show Name': 'House', 'Premiered': '2004', 'path': u'/media/Disq500GO/Mes vid\xe9os/Series/House/', 'Runtime': '60', 'NextNumber': '08x07', 'RFC3339': '2011-11-22T03:00:00+01:00', 'Classification': 'Scripted', 'Show URL': 'http://www.tvrage.com/House', 'Started': 'Nov/16/2004'}]
23:04:06 T:2865740656   DEBUG: 2011-11-20
23:04:06 T:2865740656   DEBUG: ################
23:04:06 T:2865740656   DEBUG: ### Dexter
23:04:06 T:2865740656   DEBUG: ### 06x08^Sins of Omission^Nov/20/2011
23:04:06 T:2865740656   DEBUG: ### 2011-11-21T03:00:00+01:00
23:04:06 T:2865740656   DEBUG: 2011-11-21
23:04:06 T:2865740656   DEBUG: ################
23:04:06 T:2865740656   DEBUG: ### Gossip Girl
23:04:06 T:2865740656   DEBUG: ### 05x08^All The Pretty Sources^Nov/21/2011
23:04:06 T:2865740656   DEBUG: ### 2011-11-22T02:00:00+01:00
23:04:06 T:2865740656   DEBUG: 2011-11-22
23:04:06 T:2865740656   DEBUG: ################
23:04:06 T:2865740656   DEBUG: ### House
23:04:06 T:2865740656   DEBUG: ### 08x07^Dead & Buried^Nov/21/2011
23:04:06 T:2865740656   DEBUG: ### 2011-11-22T03:00:00+01:00
23:04:06 T:2865740656   DEBUG: 2011-11-22
23:04:06 T:2865740656   DEBUG: ################
23:04:06 T:2865740656   DEBUG: ### Bones
23:04:06 T:2865740656   DEBUG: ### 07x04^The Male in the Mail^Dec/01/2011
23:04:06 T:2865740656   DEBUG: ### 2011-12-02T03:00:00+01:00
23:04:06 T:2865740656   DEBUG: 2011-12-02
23:04:06 T:2865740656   DEBUG: ################
23:04:06 T:2865740656   DEBUG: ### Game of Thrones
23:04:06 T:2865740656   DEBUG: ### 02x01^Season 2, Episode 1^Apr/15/2012
23:04:06 T:2865740656   DEBUG: ### 2012-04-16T04:00:00+02:00
23:04:06 T:2865740656   DEBUG: 2012-04-16
23:04:06 T:2865740656   DEBUG: ### today show: 0 -

But I still can not view and I do not understand why?

you can find the file http://passion-xbmc.org/glass/influence-glass/?action=dlattach;attach=6183


- ronie - 2011-11-21

fmronan Wrote:I made the change but it does not work, I find the information NextAired in my log file.
Code:
23:04:06 T:2865740656   DEBUG: ### today show: 0 -

you don't have any shows that are airing today.

edit:
it should be ShortTime btw.
didn't spot that the first time :-)


- fmronan - 2011-11-21

It is not possible to display the next release if it is not released today? Before I could do with Next Aired


- ronie - 2011-11-21

fmronan Wrote:It is not possible to display the next release if it is not released today? Before I could do with Next Aired

nope, most people didn't like the fact that the script was showing tv shows that are aired maybe weeks from now.

see:
http://forum.xbmc.org/showthread.php?p=909606#post909606


- fmronan - 2011-11-21

ok I understand but would not it be possible to do so by adding an option, because I what I want it displayed the next 10 broadcast and also say whether the broadcast and in less than a week and also if it's today?


- ronie - 2011-11-21

fmronan Wrote:ok I understand but would not it be possible to do so by adding an option, because I what I want it displayed the next 10 broadcast and also say whether the broadcast and in less than a week and also if it's today?

maybe, but i'm not interested in looking into it.
that shouldn't stop anyone else from doing it though :-)


- ekim232 - 2011-11-22

Is it possible to show the logo within the tv show library on your next aired pop up? I tried $INFO[Window(Home).Property(Path),,logo.png] but that did not work. Not sure if the coding is right.


- `Black - 2011-11-22

$INFO[Container.ListItem.Path,,logo.png] should work.


- ronie - 2011-11-22

my guess is you're looking for $INFO[Window(Home).Property(NextAired.Path),,logo.png]


Mon, tue wed, etc page screen - cruzannavy - 2011-12-21

Before the updates to the addon, i was able to call each day individually to a specif screen ie monday had its own page with posters extra info and ( similiar to a poster view for each episode. i would click on a button call monday and it would call a separate window to just display monday info. i am tryign to recreate that page with the new addon script but having some issue, i can mod xml just fine (familiar with editing/modding skins), i have modded script-NextAired-TVGuide.xml the way i like it, but am having trouble figuring out how to call the info to another page ie just list 200 (respectively) for monday page and etc to each days page. any pointer on how i would, for example.
from within script-NextAired-TVGuide.xml hit (custom ) button "500" monday, it will call modays page from and on monday page , lets say window id 1120, have jsut list 200 called, that wav i can use info label for just that list to call everything i need for monday?
I had this workign perfectly with the dharma script but of course trying to keep with the times updating it for the pending eden relaese so my tv guide pages will work, any help would be greatly appreciated. Thank you , hope i didnt confuse anyone

im assuming i need to utilize <onload>RunScript(script.tv.show.next.aired,backend=True)</onload>


- ronie - 2011-12-21

i'm not sure if that still can be done.

it's a script window now, so creating custom windows is a no go.

instead of creating several windows, it may be possible to create multiple layouts inside script-NextAired-TVGuide.xml for each day of the week though.

i'm not entirely sure it'll work, but it's worth to give it a shot.


- cruzannavy - 2011-12-21

for instance, button 500, onfocus, and then whatever layout?
i was figuring it might not be possible anymore since looking at the default.py calls the file by name. im guessing ill just stick to script-NextAired-TVGuide.xml and customize that page some more, thanks for the feedback


- ronie - 2011-12-21

cruzannavy Wrote:for instance, button 500, onfocus, and then whatever layout?

i don't know if it'll work, but if you add something like this to button 500:
<onclick>SetProperty(YourSkinName,ShowMonday)</onclick>

and then use it as a visible condition to make a certain layout visible:
<visible>SubString(Window.Property(YourSkinName),ShowMonday)</visible>