tv show next aired script - new features for skinners

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
nessus Offline
Skilled Skinner
Posts: 625
Joined: Apr 2009
Reputation: 12
Location: Rodos, Greece
Post: #171
Ideally and in my opinion would be the Next.Date infolabel to give the same result as the System.Date without the Date in front since the script has a separate infolabel (AirDay) for the day of the week only.

@ronie the code that you give me (<visible>SringCompare(Window(Home).Property(NextAi red.Status),foo)</visible>) is not working the way i want except if i am doing something wrong. I want to separate only the "Cancelled/Ended" shows from the "Returning Series", "Final Season" etc. Is that possible ?.
(This post was last modified: 2012-01-04 10:35 by nessus.)
find quote
ronie Offline
Team-XBMC Member
Posts: 8,346
Joined: Jan 2009
Reputation: 111
Post: #172
`Black Wrote:Hm what's the error there? Wrong format?

yeah, dateshort and datelong should have the same day, month, year order.

imo, it should be changed to:
<dateshort>DD-MM-YYYY</dateshort>

unless i'm missing something...

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
ronie Offline
Team-XBMC Member
Posts: 8,346
Joined: Jan 2009
Reputation: 111
Post: #173
nessus Wrote:@ronie the code that you give me (<visible>SringCompare(Window(Home).Property(NextAi red.Status),foo)</visible>) is not working the way i want except if i am doing something wrong. I want to separate only the "Cancelled/Ended" shows from the "Returning Series", "Final Season" etc. Is that possible ?.
this should be all you need then:
Code:
<visible>!IsEmpty(Window(Home).Property(NextAired.NextDate))</visible>

Cancelled/Ended shows won't have a 'NextDate' so it's easiest just to check for that.

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not PM or e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.
find quote
nessus Offline
Skilled Skinner
Posts: 625
Joined: Apr 2009
Reputation: 12
Location: Rodos, Greece
Post: #174
ronie Wrote:this should be all you need then:
Code:
<visible>!IsEmpty(Window(Home).Property(NextAired.NextDate))</visible>

Cancelled/Ended shows won't have a 'NextDate' so it's easiest just to check for that.

Nope. This gives "Cancelled/Ended" shows but also "Returning Series" shows with NO next airing date. For example.. "Burn Notice" right now is reported as "Returning Series" even there isn't any info about in NextDate.

So... is not possible to separate ONLY the "Cancelled/Ended" shows ?
find quote
Hitcher Offline
Skilled Skinner
Posts: 9,976
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #175
PHP Code:
SubString(Window(Home).Property(NextAired.%d.Status),Canceled
?

[Image: sig_zps3af3b48e.jpg]
find quote
`Black Offline
Skilled Skinner
Posts: 2,071
Joined: Apr 2009
Reputation: 51
Location: Germany
Post: #176
ronie Wrote:yeah, dateshort and datelong should have the same day, month, year order.

imo, it should be changed to:
<dateshort>DD-MM-YYYY</dateshort>

unless i'm missing something...

No that's correct, YYYY-MM-DD is the international standard date notation. If you look at the US format, it's MM/DD/YYYY for dateshort and DDDD, MMMM D, YYYY for datelong. My guess it's the same for every setting, dateshort is fully localized.

@nessus
Hitchers suggestion should work.

[Image: xp1080-21.png]
find quote
nessus Offline
Skilled Skinner
Posts: 625
Joined: Apr 2009
Reputation: 12
Location: Rodos, Greece
Post: #177
No. Hitchers code is not working too. Actually i have not any results at all.

Any other ideas guys ?

Edit: Sorry if this is stupid question bu to clarify this, the %d stand as it is or do i have to change it with some numbers ?
(This post was last modified: 2012-01-04 18:22 by nessus.)
find quote
`Black Offline
Skilled Skinner
Posts: 2,071
Joined: Apr 2009
Reputation: 51
Location: Germany
Post: #178
Code:
<control type="group">
  <visible>SubString(Window(Home).Property(NextAired.Status),Canceled)</visible>
  <!-- Put everything for canceled shows here -->
</control>

<control type="group">
  <visible>!SubString(Window(Home).Property(NextAired.Status),Canceled)</visible>
  <!-- Put everything for shows which are not canceled here -->
</control>

This definitely works, just tested it.

[Image: xp1080-21.png]
find quote
Hitcher Offline
Skilled Skinner
Posts: 9,976
Joined: Aug 2007
Reputation: 67
Location: Eastleigh, UK
Post: #179
nessus Wrote:No. Hitchers code is not working too. Actually i have not any results at all.

Any other ideas guys ?

Edit: Sorry if this is stupid question bu to clarify this, the %d stand as it is or do i have to change it with some numbers ?

%d needs to be changed to a number for each item.

[Image: sig_zps3af3b48e.jpg]
find quote
`Black Offline
Skilled Skinner
Posts: 2,071
Joined: Apr 2009
Reputation: 51
Location: Germany
Post: #180
%d is obsolete, it's just NextAired.NextDate, NextAired.Status etc.

[Image: xp1080-21.png]
find quote
Post Reply