tv show next aired script - new features for skinners - Printable Version
+- XBMC Community Forum (http://forum.xbmc.org)
+-- Forum: Development (/forumdisplay.php?fid=32)
+--- Forum: Skin Development (/forumdisplay.php?fid=12)
+--- Thread: tv show next aired script - new features for skinners (/showthread.php?tid=111986)
- nessus - 2012-01-04 00:29
Hitcher Wrote:Couldn't you use visible conditions on each list so they're all visible when in 'Weekly' mode and then when you switch to 'Daily' mode make only the current one is visible but with a different layout?
Do you mean two layouts for each day list ?. How can i do that ?. And how i switch both layouts. Also in daily view i have some additional info for each show. Are these gonna show ?
- nessus - 2012-01-04 00:49
ronie Wrote:you can find an answer to that here: http://forum.xbmc.org/showthread.php?p=940745#post940745
I do not agree with that. I think is very useful to know when my favorites shows is starting again. Is there any other way to have this future ?
ronie Wrote:script should already do that. all dates/times are localized.
My XBMC setup is European and my international settings are in "Central Europe" but still i get the AM/PM after the "ShortTime" label even if in XBMC are not showing.
ronie Wrote:script already does that. :-)I've check the guide in T! & Xperience 1080 and the focus is in the first tv show of the first day that is active of shows that airing this week and there is just color blend for the current day of the week.
ronie Wrote:sure, you can do a stringcompare on the status label and use it as a visible condition.Sorry again... but is one label how can i do that ?.
- ronie - 2012-01-04 01:30
nessus Wrote:I do not agree with that. I think is very useful to know when my favorites shows is starting again. Is there any other way to have this future ?that info can be shown when you browse your library,
but not in the tv guide.
it's a tv guide, meaning, it'll show you what's on this week.
not what's airing 6 months from now...
but as i said:
Quote:i'm not interested in looking into it.
nessus Wrote:My XBMC setup is European and my international settings are in "Central Europe" but still i get the AM/PM after the "ShortTime" label even if in XBMC are not showing.i can't reproduce it...
the only thing i can think of is, you had it set to something else when next aired was downloading the info for all your shows.
nessus Wrote:I've check the guide in T! & Xperience 1080 and the focus is in the first tv show of the first day that is active of shows that airing this week and there is just color blend for the current day of the week.that will only happen if todays list is empty, since you can't focus an empty list.
nessus Wrote:Sorry again... but is one label how can i do that ?.depends on what exactly you want to do.
most skins simply use <visible>!IsEmpty(Window(Home).Property(NextAired.NextDate))</visible> to filter cancel/ended shows.
but if you want more fine-tuning, <visible>SringCompare(Window(Home).Property(NextAired.Status),foo)</visible> should also work.
- `Black - 2012-01-04 01:36
Script checks for AM/PM in System.Time so if it doesn't show in XBMC, it doesn't in the next aired labels. If it doesn't show in the skin, it's using a custom time format without am/pm, e.g. System.Time(hh:mm). If you don't have any shows airing on the current weekday, script will set focus to the first day which has shows.
- nessus - 2012-01-04 02:24
Thanks for your answers guys.
Sorry but i didn't now about the focus thing as i remember the previous version of the script it was focused on the current day of the week even if there weren't any tv shows.
You were right about the time format (must be something with my script db) but the date format is different from the System.Date infolabel.
In my setup the System.Date infolabel returns "4 Jan 2012" and the script NextDate infolabel returns "12-01-04". Is that right or i am doing something wrong again ?
It's a pity about the all shows info in guide future but its ok.
If i can make one last try , and if is not so much coding trouble, an option in skin settings it will be great.
- `Black - 2012-01-04 03:02
The date format is correct that way, separator (dash, dot or slash) and order of day, month & year differ depending on your region settings.
- nessus - 2012-01-04 03:24
Sorry for insisting on this, but these two infolabels should give the same results ?.
My region settings are in "Central Europe".
- `Black - 2012-01-04 04:40
No they should not give the same results, it's correct on your screenshot.
- ronie - 2012-01-04 04:44
`Black Wrote:No they should not give the same results, it's correct on your screenshot.
yes they should ;-)
i've traced it down to an error in the english langinfo.xml file
the System.Date infolabel will use the <datelong> value, so it shows up correct in the skin.
but we use <dateshort>, which is clearly incorrect at xbmc side.
- `Black - 2012-01-04 05:12
Hm what's the error there? Wrong format? The next aired label is correct, at least it's intended to have this short format. System.Date uses datelong as you said so everything is correct on nessus screenshot.