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


- User 55003 - 2011-10-25

`Black Wrote:Use !IsEmpty(Window(Home).Property(NextAired.NextDate)) now as info is available for canceled shows as well.

Cheers mate.


- ronie - 2011-10-30

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 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).

i've been working on another set of changes (hopefully the final ones)

if anyone who is using the script for a home screen widget could test this:
http://ronie.googlecode.com/files/script.tv.show.next.aired-4.1.2v3.zip

i have made two changes:
- the NextAired.%d.Foo labels will now only return shows airing today,
so no need anymore to filter them yourself with a bunch of visible conditions.

- the script will autorun every day at midnight, so all info should be up-to-date and accurate all of the time.

note, these three have been renamed:
NextAired.%d.ShowTitle > NextAired.%d.Label
NextAired.%d.ep_img > NextAired.%d.Thumb
NextAired.%d.Showpath > NextAired.%d.Path


- cruzannavy - 2011-10-30

Ill check it out, i did notice i had to force a reload of a skin to get it to update daily, even if i just re ran script it would not update home screen. but this was using 4.1


- Hitcher - 2011-10-31

I hate to ask seeing how much you've been working on this but would it be possible to have separate season and episode number please?

ie NextSeasonNumber and NextEpisodeNumber

Purely because I prefer to use S01E01 as opposed to 01x01.

Thanks.


- Sharpe - 2011-10-31

ronie Wrote:...if anyone who is using the script for a home screen widget could test this:
http://ronie.googlecode.com/files/script.tv.show.next.aired-4.1.2v3.zip...

Nice - that's reduced over 1500 lines of code from my xml. Seems to work spot on. Also noticed that NextAired.1.Showpath has changed to NextAired.1.Path - once I spotted that everything was ok to get logos working again.

I just wish it didn't take so long to scan everything in when it updates. Still I don't think anything can be done about that.

Thanks for the updates ronie.


- cruzannavy - 2011-10-31

Sharpe Wrote:Nice - that's reduced over 1500 lines of code from my xml. Seems to work spot on. Also noticed that NextAired.1.Showpath has changed to NextAired.1.Path - once I spotted that everything was ok to get logos working again.

I just wish it didn't take so long to scan everything in when it updates. Still I don't think anything can be done about that.

Thanks for the updates ronie.

Hey Sharpe , can you send me ur xml file before and after... the changes.. itll be easier for me to mod my skin after i see how you have done urs.. im not as skilled , but a skinner.
pastebin or wherever u want


- ronie - 2011-10-31

Hitcher Wrote:I hate to ask seeing how much you've been working on this but would it be possible to have separate season and episode number please?

ie NextSeasonNumber and NextEpisodeNumber

Purely because I prefer to use S01E01 as opposed to 01x01.

Thanks.

heh, speak up now or forever hold your peace...

will add those, np :-)


- ronie - 2011-10-31

Sharpe Wrote:Nice - that's reduced over 1500 lines of code from my xml. Seems to work spot on.
great, exactly the reason we're making these changes to the script.

Sharpe Wrote:Also noticed that NextAired.1.Showpath has changed to NextAired.1.Path - once I spotted that everything was ok to get logos working again.
cheers, updated my previous post accordingly.

Sharpe Wrote:I just wish it didn't take so long to scan everything in when it updates. Still I don't think anything can be done about that.

tvrage can be very slow at times.


- cruzannavy - 2011-10-31

Hmmm, Im gonna take a look at Sharps skin, but this version completely broke all my skins pages that utilized tv show next aired, my home page semi broke, my tv guide for the week ( like the one built-in now) broke, and my daily guide broke... im sure i just have to go mod each day and week and home xml, but that does mean i have to edit all 9 xml files? really.. no big deal, once i have teh ime , im sure it reduces code ? im sure i can use some form of replace all to an extent, but is there a shortcut guide as to what changed to what ? im sure the change log is prob my best bet?


- ronie - 2011-10-31

cruzannavy Wrote:Hmmm, Im gonna take a look at Sharps skin, but this version completely broke all my skins pages that utilized tv show next aired, my home page semi broke, my tv guide for the week ( like the one built-in now) broke, and my daily guide broke... im sure i just have to go mod each day and week and home xml, but that does mean i have to edit all 9 xml files? really.. no big deal, once i have teh ime , im sure it reduces code ? im sure i can use some form of replace all to an extent, but is there a shortcut guide as to what changed to what ? im sure the change log is prob my best bet?

only thing that changed is mentioned here:
http://forum.xbmc.org/showpost.php?p=924226&postcount=107

the included readme would be a good place to start btw.


- cruzannavy - 2011-10-31

maybe ill wipe my db and start from scratch and then re run script and if it doesnt load properly ill take a look at the skin changes


- Hitcher - 2011-10-31

ronie Wrote:heh, speak up now or forever hold your peace...

will add those, np :-)

Many thanks. Wink


Conflict with youtube/vimeo add-on - BigNoid - 2011-11-05

It was found out that when running next aired as backend you can't search youtube or vimeo addon:
http://forum.xbmc.org/showpost.php?p=928476&postcount=3788

I made a debug log, but it doesn't show any errors.

http://pastebin.com/5XG9a5HN

I'm a bit confused as to where the solution for this must come:
- next aired script?
- youtube/vimeo add-on?
Atm I have a workaround to not load the backend when opening add-ons, but this gets bypassed when it's added as favorite to the main menu. I can also only load it when entering the tv show library through main menu, but then it will break next aired data when smart playlist are added to main menu or when the tv show library is entered through the videos menu.


- ronie - 2011-11-05

Big_Noid Wrote:I'm a bit confused as to where the solution for this must come:
- next aired script?
- youtube/vimeo add-on?

none of the above, it's a xbmc bug.

http://trac.xbmc.org/ticket/12126


visible help - cruzannavy - 2011-11-06

Code:
<visible>StringCompare(Window(Home).Property(NextAired.1.airday),Monday)</visible>

I cant seem to figure out what this visible change to v4.1.3

It worked perfectly before , until i update it to v4.1.3

Any help would be nice. Ultimately it worked when there was a show playing on monday. kinda like this ??
Code:
!IsEmpty(Window(Home).Property(TVGuide.MondayList))