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)



- ronie - 2011-10-04

papampi Wrote:thanks for quick reply !!!!
here is the full log from start !!!


http://pastebin.com/Q8K4v2ip

Quote:Starting XBMC, Platform: Mac OS X (11.0.0 AppleTV2,1). Built on Jun 23 2011 (Git:20110623-62171b3)

your xbmc build is too old.
you need a recent nightly build for this addon to work properly.


- Martijn - 2011-10-04

ronie Wrote:your xbmc build is too old.
you need a recent nightly build for this addon to work properly.

Maybe crazy idea but isn't there a way for script to detect the xbmc build version. So the the user will get a notifacation that their build is to old and they need version x or higher?
I am no real programmer but i can imagine it can be done.


- papampi - 2011-10-04

ronie Wrote:your xbmc build is too old.
you need a recent nightly build for this addon to work properly.

I thought of that !
I just upgrade it to latest nightly this morning from office with remote ssh !
will check it later and let you know !
Thanks for the heads up!


- ronie - 2011-10-04

Machine-Sanctum Wrote:Maybe crazy idea but isn't there a way for script to detect the xbmc build version. So the the user will get a notifacation that their build is to old and they need version x or higher?
I am no real programmer but i can imagine it can be done.

with stable versions of xbmc (dharma / eden) it'll work that way,
but with development builds, where things can change daily it's hardly doable.

let's say a user creates a new script today and uses the tools/functionality that's currently available in xbmc...
how should he figure out when these functions/tools were added to xbmc?


- Martijn - 2011-10-04

ronie Wrote:let's say a user creates a new script today and uses the tools/functionality that's currently available in xbmc...
how should he figure out when these functions/tools were added to xbmc?

True. However you do know when it is broken when the functionality in xbmc changes. You fix the add-ons/script to work again from that build. So from that point you can say you need a minimal build from that date.
I admit it's not ideal however if auto update is active and you fix the script to work with the latest build and the user doesn't have that. It's broken so this way you can give a notification.

These are just some thoughts.


- papampi - 2011-10-04

ronie Wrote:with stable versions of xbmc (dharma / eden) it'll work that way,
but my version was stable and it did not work !!!!


- Martijn - 2011-10-04

papampi Wrote:but my version was stable and it did not work !!!!

The nightly ATV2 version is not stable. It is still marked as pre-Eden and still not officially realesed.


- papampi - 2011-10-04

Machine-Sanctum Wrote:The nightly ATV2 version is not stable. It is still marked as pre-Eden and still not officially realesed.
thanks for info !!!


- paddycarey - 2011-10-04

Machine-Sanctum Wrote:True. However you do know when it is broken when the functionality in xbmc changes. You fix the add-ons/script to work again from that build. So from that point you can say you need a minimal build from that date.
I admit it's not ideal however if auto update is active and you fix the script to work with the latest build and the user doesn't have that. It's broken so this way you can give a notification.

These are just some thoughts.

People who are using nightly builds should probably expect breakage from time to time though. They're the only people who will experience this problem as once an xbmc version goes stable there really shouldn't be much breaking.

If this was a problem which affected stable users it might be worth looking for a solution, but most nightly users probably already know that they should check the forum or update if something breaks.


- papampi - 2011-10-05

i have these errors on my ubuntu
how can i reslove the issue ?
or i should ignore them !

Quote:10:53:56 T:2829036400 ERROR: Traceback (most recent call last):
10:53:56 T:2829036400 ERROR: File "/home/payam/.xbmc/addons/script.tv.show.next.aired/default.py", line 153, in push_data
10:53:56 T:2829036400 ERROR: self.WINDOW.setProperty( "NextAired.%d.LatestDate" % ( count + 1, ), latest[2] or "")
10:53:56 T:2829036400 ERROR: IndexError: list index out of range
10:53:56 T:2891971440 DEBUG: VideoInfoScanner: No (new) information was found in dir /media/media1/tvseries1/Caprica/
10:53:56 T:2829036400 ERROR: Traceback (most recent call last):
10:53:56 T:2829036400 ERROR: File "/home/payam/.xbmc/addons/script.tv.show.next.aired/default.py", line 153, in push_data
10:53:56 T:2829036400 ERROR: self.WINDOW.setProperty( "NextAired.%d.LatestDate" % ( count + 1, ), latest[2] or "")
10:53:56 T:2829036400 ERROR: IndexError: list index out of range
10:53:56 T:2829036400 ERROR: Traceback (most recent call last):
10:53:56 T:2829036400 ERROR: File "/home/payam/.xbmc/addons/script.tv.show.next.aired/default.py", line 153, in push_data
10:53:56 T:2829036400 ERROR: self.WINDOW.setProperty( "NextAired.%d.LatestDate" % ( count + 1, ), latest[2] or "")
10:53:56 T:2829036400 ERROR: IndexError: list index out of range
10:53:56 T:2829036400 ERROR: Traceback (most recent call last):
10:53:56 T:2829036400 ERROR: File "/home/payam/.xbmc/addons/script.tv.show.next.aired/default.py", line 153, in push_data
10:53:56 T:2829036400 ERROR: self.WINDOW.setProperty( "NextAired.%d.LatestDate" % ( count + 1, ), latest[2] or "")
10:53:56 T:2829036400 ERROR: IndexError: list index out of range
10:53:56 T:2829036400 ERROR: Traceback (most recent call last):
10:53:56 T:2829036400 ERROR: File "/home/payam/.xbmc/addons/script.tv.show.next.aired/default.py", line 153, in push_data
10:53:56 T:2829036400 ERROR: self.WINDOW.setProperty( "NextAired.%d.LatestDate" % ( count + 1, ), latest[2] or "")
10:53:56 T:2829036400 ERROR: IndexError: list index out of range



- ronie - 2011-10-05

papampi Wrote:i have these errors on my ubuntu
how can i reslove the issue ?
or i should ignore them !

unless you get a 'script failed' error on screen,
you can safely ignore these.


- papampi - 2011-10-05

ronie Wrote:unless you get a 'script failed' error on screen,
you can safely ignore these.

I get "script failed service.py" at startup of xbmc !


- ronie - 2011-10-05

papampi Wrote:I get "script failed service.py" at startup of xbmc !

that must be some other script then?
there's no 'service.py' in tv shows next aired.


- papampi - 2011-10-05

ronie Wrote:that must be some other script then?
there's no 'service.py' in tv shows next aired.
ok thanks !
I'll look into other scripts !!!


Script Failed!: script.tv.show.next.aired - Vengent - 2011-10-06

20:18:09 T:99106816 M:143298560 INFO: -->Python script returned the following error<--
20:18:09 T:99106816 M:143298560 ERROR: Error Type: <type 'exceptions.AttributeError'>
20:18:09 T:99106816 M:143298560 ERROR: Error Contents: 'module' object has no attribute 'mkdir'
20:18:09 T:99106816 M:143298560 ERROR: Traceback (most recent call last):
File "/var/mobile/Library/Preferences/XBMC/addons/script.tv.show.next.aired/default.py", line 25, in <module>
if not xbmcvfs.exists(DATA_PATH): xbmcvfs.mkdir(DATA_PATH)
AttributeError: 'module' object has no attribute 'mkdir'
20:18:09 T:99106816 M:143298560 INFO: -->End of Python script error report<--

It's on ATV2, running stable, not nightly. Anyone have any ideas?