tv show next aired script - new features for skinners

  Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
eddiem Offline
Senior Member
Posts: 112
Joined: Oct 2010
Reputation: 0
Location: Edinburgh, Scotland
Post: #11
humferier Wrote:2 bugs :
- 2 shows have the correct date but displayed on wrong day (red ellipse)

These days and dates come from TVRage.
New Girl: normal air day is Tuesday.
http://www.tvrage.com/The_New_Girl
find quote
Tobby Offline
Fan
Posts: 439
Joined: Jul 2011
Reputation: 1
Post: #12
Is there a way to try it even though I no nothing about code?
find quote
ronie Offline
Team-XBMC Member
Posts: 8,344
Joined: Jan 2009
Reputation: 111
Post: #13
Sharpe Wrote:Do you know if these kind of visibilities will still work for airing today style widgets?

Code:
<visible>substring(Window(Home).Property(NextAired.1.Today),true)</visible>

i'd like to remove all NextAired.%d.Today labels, unless are still needed for some reason of course.

i have no clue in what ways skins are currently using the info provided by next aired, so if the new labels aren't sufficient, let me know.

you can now do
Code:
<visible>substring(Window(Home).Property(NextAired.Today),true)</visible>
on the focused listitem...if that's what you mean Smile

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,344
Joined: Jan 2009
Reputation: 111
Post: #14
Big_Noid Wrote:Nice work! I see one error in the log show up:

Code:
19:02:21 T:5720   ERROR: Traceback (most recent call last):
19:02:21 T:5720   ERROR:   File "C:\Program Files (x86)\XBMC_SVN\portable_data\addons\script.tv.show.next.aired\default.py", line 335, in set_labels
19:02:21 T:5720   ERROR:     label.setProperty(prefix + "LatestDate", latest[2] or "")
19:02:21 T:5720   ERROR: IndexError: list index out of range

Do you need a full log for this?

yes please.

Big_Noid Wrote:Also the TodayTotal returns 0 while in the next aired window I have several shows airing on sunday.

the readme might not be entirely clear on this i guess,
but for totals use:
Window(Home).Property(NextAired.TodayTotal)

in case you're already using that, let me know and i'll have a closer look.

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,344
Joined: Jan 2009
Reputation: 111
Post: #15
Hitcher Wrote:[Image: screenshot000lm.jpg]

you've got some pretty weird results Smile

what skin are you running this on?

mind posting your nextaired db so i can try to reproduce?
(..\userdata\addon_data\script.tv.show.next.aired\next_aired.db)

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,344
Joined: Jan 2009
Reputation: 111
Post: #16
Jezz_X Wrote:Well I just get nothing Sad

* ronie spanks Jezz_X for cluttering up the forum with logs :-)

i'll fix the error, though i'm unsure if it's related to you getting no results.

full debug log on pastebin please ;-p

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
Sharpe Offline
Skilled Skinner
Posts: 975
Joined: Jul 2006
Reputation: 12
Location: North West England
Post: #17
ronie Wrote:i'd like to remove all NextAired.%d.Today labels, unless are still needed for some reason of course.

i have no clue in what ways skins are currently using the info provided by next aired, so if the new labels aren't sufficient, let me know.

you can now do
Code:
<visible>substring(Window(Home).Property(NextAired.Today),true)</visible>
on the focused listitem...if that's what you mean Smile

I have a widget on the home screen that used to display the first 4 items in the next aired script that were airing on that particular day.

eg,

Code:
<texture background="true">$INFO[Window(Home).Property(NextAired.1.Showpath)]logo.png</texture>

Code:
<texture background="true">$INFO[Window(Home).Property(NextAired.2.Showpath)]logo.png</texture>

And so on for the first 4 items.

I used various visibility conditions to make sure the correct items were visible even if the scripts first few items were for previous days (ie if the script hadn't been run for a while).

Is there any way to keep this working?

Cheers
find quote
Big_Noid Online
Skilled Skinner
Posts: 2,627
Joined: Jul 2010
Reputation: 68
Location: Below sea level
Post: #18
ronie Wrote:yes please.



the readme might not be entirely clear on this i guess,
but for totals use:
Window(Home).Property(NextAired.TodayTotal)

in case you're already using that, let me know and i'll have a closer look.

here you go. I was indeed using that. It literally returned a 0.
find quote
`Black Online
Skilled Skinner
Posts: 2,070
Joined: Apr 2009
Reputation: 51
Location: Germany
Post: #19
Just tested on Confluence with mouse and everything is fine here, no problems. Hitchers results are indeed a little weird, I would say the same, delete canceled.db & next_aired.db, then try again.

Another important thing is to use a very recent nightly build, this is maybe missing in the readme!

[Image: xp1080-21.png]
find quote
ronie Offline
Team-XBMC Member
Posts: 8,344
Joined: Jan 2009
Reputation: 111
Post: #20
humferier Wrote:2 bugs :
- 2 shows have the correct date but displayed on wrong day (red ellipse)

this can be either a script fault or it could be due to incorrect info listed at tvrage.com

could you give me the names of those 2 shows?

humferier Wrote:- 3 shows airing today, none at total (green ellipse)

hmm...will have a look-see at 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
Post Reply