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)



- rtwight - 2011-02-07

Anyone else having issues with this script?

Here is the error i get in my debug log
15:59:03 T:3536 M:1932288000 NOTICE: ### TV-Show Next-Aired starting ...
15:59:03 T:3536 M:1932288000 NOTICE: ### author: Ppic, Frost
15:59:03 T:3536 M:1932288000 NOTICE: ### URL: http://code.google.com/p/passion-xbmc/
15:59:03 T:3536 M:1932288000 NOTICE: ### credits: Team Passion-XBMC, http://passion-xbmc.org/
15:59:03 T:3536 M:1932288000 NOTICE: ### date: 17-10-2010
15:59:03 T:3536 M:1932288000 NOTICE: ### version: 2.1.2
15:59:03 T:3536 M:1932288000 NOTICE: {}
15:59:03 T:3536 M:1932288000 NOTICE: ###db old more than 24h, rescanning...
15:59:03 T:3536 M:1932288000 INFO: Loading skin file: DialogProgress.xml
15:59:03 T:3536 M:1932283904 DEBUG: ------ Window Init (DialogProgress.xml) ------
15:59:03 T:3536 M:1932283904 NOTICE: ### Load list: C:\Users\rob\AppData\Roaming\XBMC\userdata\addon_data\script.tv.show.next.aired\canceled.db
15:59:03 T:3536 M:1932283904 NOTICE: Traceback (most recent call last):
15:59:03 T:3536 M:1932283904 NOTICE: File "C:\Users\rob\AppData\Roaming\XBMC\addons\script.tv.show.next.aired\default.py", line 250, in load_file
15:59:03 T:3536 M:1932283904 NOTICE: return eval( file( file_path, "r" ).read() )
15:59:03 T:3536 M:1932283904 NOTICE: File "<string>", line 0
15:59:03 T:3536 M:1932283904 NOTICE: ^
15:59:03 T:3536 M:1932283904 NOTICE: SyntaxError: unexpected EOF while parsing
15:59:03 T:3536 M:1932283904 INFO: -->Python script returned the following error<--
15:59:03 T:3536 M:1932283904 ERROR: Error Type: exceptions.NameError
15:59:03 T:3536 M:1932283904 ERROR: Error Contents: global name 'temp' is not defined
15:59:03 T:3536 M:1932283904 ERROR: Traceback (most recent call last):
File "C:\Users\rob\AppData\Roaming\XBMC\addons\script.tv.show.next.aired\default.py", line 287, in ?
NextAired()
File "C:\Users\rob\AppData\Roaming\XBMC\addons\script.tv.show.next.aired\default.py", line 68, in __init__
self.scan_info()
File "C:\Users\rob\AppData\Roaming\XBMC\addons\script.tv.show.next.aired\default.py", line 193, in scan_info
self.canceled = self.get_list("canceled.db")
File "C:\Users\rob\AppData\Roaming\XBMC\addons\script.tv.show.next.aired\default.py", line 243, in get_list
return self.load_file(path)
File "C:\Users\rob\AppData\Roaming\XBMC\addons\script.tv.show.next.aired\default.py", line 253, in load_file
print "### ERROR impossible de charger le fichier %s" % temp
NameError: global name 'temp' is not defined
15:59:03 T:3536 M:1932283904 INFO: -->End of Python script error report<--
15:59:0

I've tried uninstalling and reinstalling and differen skins but same issue Sad


- rtwight - 2011-02-09

fixed the issue by deleting the 2 database files in the addons data directory and the script rebuilt them.

Guess when you uninstall the script it doesn't delete the database files Smile


- BigNoid - 2011-02-12

Since it's possible to push data to the skin, it might be useful to make it optional to scrape canceled/ended shows and add end date of the final episode.
(Yeah I know the script is called NEXT aired Big Grin)
I am coding it to be in default TV show view, so now for ended series it looks bad to see no info.


- ppic - 2011-02-13

if you go that way, you'll need to make stringcompare on all of your show, for number of show you have, won't be good, i'll make another way for that kind of things.


- nessus - 2011-03-18

Big_Noid Wrote:Since it's possible to push data to the skin, it might be useful to make it optional to scrape canceled/ended shows and add end date of the final episode.
(Yeah I know the script is called NEXT aired Big Grin)
I am coding it to be in default TV show view, so now for ended series it looks bad to see no info.

Did you manage to do that ?

I am also integrating the script to one view in the Xperience and i was looking how to manage to get those info ?.

ppic.... i am using the "Status" switch (NextAired.1.Status) but i get nothing for the canceled/ended TV Shows. Is that normal or i am doing something wrong ?.

Cheers
Nessus


- ppic - 2011-03-18

nessus Wrote:Did you manage to do that ?

I am also integrating the script to one view in the Xperience and i was looking how to manage to get those info ?.

ppic.... i am using the "Status" switch (NextAired.1.Status) but i get nothing for the canceled/ended TV Shows. Is that normal or i am doing something wrong ?.

Cheers
Nessus

yes, all returned data are for show taht have a next aired info available.


- igotdvds - 2011-03-18

What about adding the ability to add shows that arent in your library. we talked about this a while back, still interested?


- ppic - 2011-03-18

yes, but wait, there could be some major change if i decide to go the way i want Wink


- igotdvds - 2011-03-23

Take a look at this image. The dates arent correct for Tuesday.

Image

I checked my code and there isnt any issue that I can see. Can you verify that the script is pulling the right info?


- ppic - 2011-03-23

which image?


- igotdvds - 2011-03-23

ppic Wrote:which image?

You dont see the picture? Weird. Try below.

Image


- ppic - 2011-03-23

check the info on tvrage to be sure for theses shows.


- igotdvds - 2011-03-23

ppic Wrote:check the info on tvrage to be sure for theses shows.

Thats it, its wrong. Make it or Break it is lised as airing next on 3/28, but it says that is a Tuesday. It is indeed a Monday.


- Hitcher - 2011-04-05

Just starting to use this in my next and I have a couple of questions.

1. I'm only using the Next Aired Date so it seems pointless to get all the other info when it's not even needed so would it be possible to exclude items when running the script?

ie

PHP Code:
XBMC.RunScript(script.tv.show.next.aired,silent=True&amp;Today=False&amp;NextTitle=False&amp;etc


2. The use of dozens and dozens of visible conditions to get the correct info matched with the correct show seems a bit over the top so wouldn't it be better to use the show name instead of an id number?

That way we could simply use -

$INFO[Window(Home).Property(NextAired.$INFO[ListItem.Label].NextDate)]

Thanks.


- ppic - 2011-04-05

what an idea you've got hitcher, i've never ever thinked of that !!!
really a big thanks !!! i'll check that soon !

for your demand, i'm doubt that it will change anything in speed or resources usage to not push the data you don't use. if you can tell me that's it , i'll check that.

your idea make me want to update that version, i was planning to use xbmc.service for the next version that would have pull info on the fly when browsing (so no more stringcompare !)