2014-03-22, 22:31
I am getting a script failed error in Aeon Nox. Is this due to 6.0.5 of the script? Because it worked fine until only recently.
(2014-03-23, 17:27)thewarm Wrote: Rolled back to 6.04. No script error.Can you please try 6.0.6? I released that early yesterday, but it's not in the approved repositories yet.
(2014-03-22, 22:37)LEDFan Wrote: Are you using the latest zip or git file from post #1? Wayne made a fix earlier today (as you can see in the posts just before yours) and it has fixed it for me.
NOTICE: script.tv.show.next.aired: ### getting series & episode info for #76342 - Dad's Army
10:18:49 T:2780 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ValueError'>
Error Contents: (22, 'Invalid argument')
Traceback (most recent call last):
File "E:\XBMC\portable_data\addons\script.tv.show.next.aired\default.py", line 1367, in <module>
NextAired()
File "E:\XBMC\portable_data\addons\script.tv.show.next.aired\default.py", line 166, in __init__
self.show_gui()
File "E:\XBMC\portable_data\addons\script.tv.show.next.aired\default.py", line 1116, in show_gui
self.update_data(update_after)
File "E:\XBMC\portable_data\addons\script.tv.show.next.aired\default.py", line 566, in update_data
tid = self.check_show_info(tvdb, tid, current_show, prior_data)
File "E:\XBMC\portable_data\addons\script.tv.show.next.aired\default.py", line 899, in check_show_info
dt = dt.astimezone(tz.tzlocal())
File "E:\XBMC\portable_data\addons\script.tv.show.next.aired\dateutil\tz.py", line 101, in dst
if self._isdst(dt):
File "E:\XBMC\portable_data\addons\script.tv.show.next.aired\dateutil\tz.py", line 141, in _isdst
return time.localtime(timestamp+time.timezone).tm_isdst
ValueError: (22, 'Invalid argument')
-->End of Python script error report<--
DATE_FORMAT = xbmc.getRegion('dateshort').lower()
(2014-03-24, 00:56)bolter Wrote: I also tried to reset and update (from the script settings) but it fails half way through.The show it fails on is Captain Scarlet and the Mysterons, which has shows right near the 1967 unix ordinal cutoff. My prior fix to the dateutil code (for systems that don't like negative time.localtime() values) apparently doesn't handle a date that is right right near the start of the year, but bumped back into the prior year by an offset. I've tweaked the code a bit more to make sure that it can't possibly go negative.
(2014-03-24, 01:58)Steveb Wrote: It seems to get stuck on Dad's ArmyThis is the same issue.Code:ValueError: (22, 'Invalid argument')
(2014-03-24, 02:29)WayneD Wrote:(2014-03-24, 00:56)bolter Wrote: I also tried to reset and update (from the script settings) but it fails half way through.The show it fails on is Captain Scarlet and the Mysterons, which has shows right near the 1967 unix ordinal cutoff. My prior fix to the dateutil code (for systems that don't like negative time.localtime() values) apparently doesn't handle a date that is right right near the start of the year, but bumped back into the prior year by an offset. I've tweaked the code a bit more to make sure that it can't possibly go negative.
Note that the only reason this doesn't affect 6.0.4 is that it does the weeding of the older episodes a little differently than the new code.
(2014-03-24, 01:58)Steveb Wrote: It seems to get stuck on Dad's ArmyThis is the same issue.Code:ValueError: (22, 'Invalid argument')
Both are fixed in the latest git and zip files. Thanks for the reports.
..wayne..
(2014-03-24, 02:08)bambi73 Wrote:Yeah, the code was doing that before I got to it. I figure that the prior author(s) liked the brevity in the 2-digit years and decided to force it. I personally use the Next-Aired setting that turns on the nicer dates, which either omits the current year entirely, or uses a 4-digit year for other years.Why is there lower()?Code:DATE_FORMAT = xbmc.getRegion('dateshort').lower()
(2014-03-24, 02:49)Steveb Wrote:(2014-03-24, 02:29)WayneD Wrote:(2014-03-24, 00:56)bolter Wrote: I also tried to reset and update (from the script settings) but it fails half way through.The show it fails on is Captain Scarlet and the Mysterons, which has shows right near the 1967 unix ordinal cutoff. My prior fix to the dateutil code (for systems that don't like negative time.localtime() values) apparently doesn't handle a date that is right right near the start of the year, but bumped back into the prior year by an offset. I've tweaked the code a bit more to make sure that it can't possibly go negative.
Note that the only reason this doesn't affect 6.0.4 is that it does the weeding of the older episodes a little differently than the new code.
(2014-03-24, 01:58)Steveb Wrote: It seems to get stuck on Dad's ArmyThis is the same issue.Code:ValueError: (22, 'Invalid argument')
Both are fixed in the latest git and zip files. Thanks for the reports.
..wayne..
Cheers mate, that did the trick!