Kodi Community Forum
[RELEASE] TV Show Next Aired (Script) Addon - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: Add-on Support (https://forum.kodi.tv/forumdisplay.php?fid=27)
+---- Forum: Program Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=151)
+---- Thread: [RELEASE] TV Show Next Aired (Script) Addon (/showthread.php?tid=79493)



- Nick8888 - 2010-10-08

He/she just wants to know how to mod confluence. Do you have a list of skin.properties?

This is really looking nice. I wonder how it could be integrated with sickbeard which also gathers next air dates; ideally the two should match.


- ppic - 2010-10-08

yes, i will provide skin.properties when released, some skinner already have them to include it.

if someone want to work on a mod to be ready when released, he can contact me, i will be a pleasure to send him the dev version (almost finalized)


- Targettio - 2010-10-08

Yes I was saying:
a) This should be included in official release (but yes that's up to team-xbmc)
b) Some one should release an update of the current default skin to include this

But was also asking (possibly naively) how I could make the necessary changes to the skin.


- ppic - 2010-10-08

you'll be able to use this like you use recently added properties.

i'll post informations on how to integrate it, and some skins will have it, then you could see how it works Wink


- hikaricore - 2010-10-16

I'm getting a python error with the latest version in the addon repo.

Code:
06:35:59 T:2919349104 M:822865920   ERROR: Error Type: exceptions.AttributeError
06:35:59 T:2919349104 M:822865920   ERROR: Error Contents: 'NoneType' object has no attribute 'split'
06:35:59 T:2919349104 M:822865920   ERROR: Traceback (most recent call last):
                                              File "/home/hikaricore/.xbmc/addons/script.tv.show.next.aired/default.py", line 271, in ?
                                                NextAired()
                                              File "/home/hikaricore/.xbmc/addons/script.tv.show.next.aired/default.py", line 88, in __init__
                                                self.push_data()
                                              File "/home/hikaricore/.xbmc/addons/script.tv.show.next.aired/default.py", line 148, in push_data
                                                latest = current_show.get("Latest Episode").split("^")
                                            AttributeError: 'NoneType' object has no attribute 'split'

Not sure if this is due to the addon itself or the way that Night is trying to invoke it.
There's more to the log but it's just a pile of show data, if you need it let me know. Smile


- ppic - 2010-10-16

just give me some few line before to see the current showname, no big problem, i should handle this soon.


- hikaricore - 2010-10-16

Code:
07:37:41 T:3023473520 M:808304640  NOTICE: ################
07:37:41 T:3023473520 M:808304640  NOTICE: ###Sherlock
07:37:41 T:3023473520 M:808304640  NOTICE: ###02x01^Season 2, Episode 1^2011
07:37:41 T:3023473520 M:808304640  NOTICE: ###no rfc
07:37:41 T:3023473520 M:808304640  NOTICE: ################
07:37:41 T:3023473520 M:808304640  NOTICE: ###Southland
07:37:41 T:3023473520 M:808304640  NOTICE: ###03x01^Season 3 Premiere^Jan/2011
07:37:41 T:3023473520 M:808304640  NOTICE: ###no rfc
07:37:41 T:3023473520 M:808304640  NOTICE: ################
07:37:41 T:3023473520 M:808304640  NOTICE: ###Spartacus: Blood and Sand
07:37:41 T:3023473520 M:808304640  NOTICE: ###02x01^Season 2, Episode 1^Jan/2011
07:37:41 T:3023473520 M:808304640  NOTICE: ###no rfc
07:37:41 T:3023473520 M:808304640  NOTICE: ################
07:37:41 T:3023473520 M:808304640  NOTICE: ###Warehouse 13
07:37:41 T:3023473520 M:808304640  NOTICE: ###02x13^Season 2, Episode 13^Dec/2010
07:37:41 T:3023473520 M:808304640  NOTICE: ###no rfc
07:37:41 T:3023473520 M:808304640  NOTICE: ################
07:37:41 T:3023473520 M:808304640  NOTICE: ###White Collar
07:37:41 T:3023473520 M:808304640  NOTICE: ###02x10^Burke's Seven^Jan/2011
07:37:41 T:3023473520 M:808304640  NOTICE: ###no rfc
07:37:41 T:3023473520 M:808304640  NOTICE: today show: 6
07:37:41 T:3023473520 M:808304640   ERROR: Error Type: exceptions.AttributeError
07:37:41 T:3023473520 M:808304640   ERROR: Error Contents: 'NoneType' object has no attribute 'split'
07:37:41 T:3023473520 M:808058880   ERROR: Traceback (most recent call last):
                                              File "/home/hikaricore/.xbmc/addons/script.tv.show.next.aired/default.py", line 271, in ?
                                                NextAired()
                                              File "/home/hikaricore/.xbmc/addons/script.tv.show.next.aired/default.py", line 88, in __init__
                                                self.push_data()
                                              File "/home/hikaricore/.xbmc/addons/script.tv.show.next.aired/default.py", line 148, in push_data
                                                latest = current_show.get("Latest Episode").split("^")
                                            AttributeError: 'NoneType' object has no attribute 'split'

Hope this is enough. ^_^


- FrostBox - 2010-10-16

hikaricore,

for pending the update of PPIC.

edit line 148 in default.py
Change: latest = current_show.get("Latest Episode").split("^")
for latest = current_show.get("Latest Episode", "").split("^")

Frost


- ppic - 2010-10-18

new version, v2.1.2

Code:
changelog:
Code:

v2.1.2
- correction for better handle when informations are missing

v2.1.1
- corrected TodayShow detection (to prevent that would have occured next year with month locale name)

v2.1.0
- added properties:
"NextAired.TodayShow" contains a list of tvshow name aired to day, useful to do stringcompare to highlight show aired today when browsing library (example: "'The Big Bang Theory', "Grey's Anatomy", 'The Mentalist'" )
"NextAired.%d.airday" contains day of airing (english day, example: "Friday")
"NextAired.%d.shortime" contains time of airing (example: "08:00 pm")v1.1.0:
- speed up the process

v2.0.0:
- rewritted the code
- now the script can be run silently ( option: silent=True )
- script can be set as alarm and will relaunch automaticaly (silently) after XXX minutes (option: alarm=XXX )
- example to launche the script silently with alarm :  XBMC.RunScript(script.tv.show.next.aired,silent=True&alarm=3600)
- result are now ordered by next episode air date.
- informations are stored for 6h, next launch after will automatically grab new info on TVrage.com
- next aired data are pushed on skin properties (HOME window) and can be called from all views
list of available property:
totals:
"NextAired.Total" -- number of next aired tvshow informations found
"NextAired.TodayTotal" -- number of tvshow diffused today
for each episode informations:
%d is the number of the property (max is "NextAired.Total")
"NextAired.%d.Today" -- True if the show is diffused today, False if not
"NextAired.%d.ShowTitle"  -- Title of the tvshow (same as stored in db, useful for stringcompare)
"NextAired.%d.NextDate"  -- Date of next episode ( example: "Jan/09/2011" )00:48:48 T:3768 M:710418432  NOTICE: ###04x01^Season 4, Episode 1^Jan/09/2011
"NextAired.%d.NextTitle"  -- Title of the next episode, if not available, it show season/episode number like this: "Season 4, Episode 1"
"NextAired.%d.NextNumber"  -- season/episode number (example: 04x01)
"NextAired.%d.LatestDate"  -- same as next but for the latest
"NextAired.%d.LatestTitle"  -- same as next but for the latest
"NextAired.%d.LatestNumber"  -- same as next but for the latest        
"NextAired.%d.Airtime"  -- day and time the show is diffused
"NextAired.%d.Showpath"  -- path parent tvshow folder, useful to use stuff like logo, cleareart ...
"NextAired.%d.Status"  -- Show season/tvshow status (example: "Returning Serie" , "Final Season", "New Serie")
"NextAired.%d.ep_img"  -- Tvshow default xbmc thumb
"NextAired.%d.Network"  -- network that diffuse the show (to use network label icon!)
"NextAired.%d.Started"  -- return the date the show started (example: 'Sep/19/2010')
"NextAired.%d.Classification"  -- don't know what it is ... can be "Scripted", don't know much, if someone can tell me ...
"NextAired.%d.Genres"  -- Tvshow genre (TVrage classification, not library) (example: 'Drama | Family')
"NextAired.%d.Premiered"  -- return the year (4digit) the show started
"NextAired.%d.Country"  -- original country
"NextAired.%d.Runtime"  -- duration in minutes



- bridgman - 2010-11-14

I am sorry if I missed some information. I am trying to Incorparate this into my skin. But I am not seeing the images. Is there an issue with the thumbmails when using Dharma beta 4. Love the add-on.


- ppic - 2010-11-15

it uses folder.jpg in your tvshow directory


- bridgman - 2010-11-15

ppic Wrote:it uses folder.jpg in your tvshow directory

Thanks! I should have known. I recently stopped of using folder.jpgs and was just using scraped images .I remember why I was doing it now. I'll start again.
Next Aired is a very cool addition to xbmc.

here is what I have come up with so far

Image


- ppic - 2010-11-15

good Big Grin

better than my ui.


- bridgman - 2010-11-15

ppic Wrote:good Big Grin

better than my ui.

I don't think so.
but thanks.


- logictester - 2010-11-15

great addon - is there going to be sort of a reminder on the next aired shows in the skin without running the addon?
thanks