2016-03-06, 14:41
Ive just changed from London time 24hr to New York time 12hr and now everything working perfectly!
Cheers for all your help
Cheers for all your help
(2016-03-07, 16:18)talkingoldfish Wrote: I've done a little bit of testing with this and have found that the Python script fails at the same point each time. It runs through 92 lines of the Live & Upcoming page without issue and then fails just before it reaches the entry for Celtics Vs. Suns. The line before this (Suns Vs. Kings) shows the start_time value of 20160326-0130 and the Celtics vs' Suns line has a value of 20160327-0130.
Clearly this is to do with Daylight Saving Time, which is due to start in the UK at 01:00 on 27th March 2016. Unfortunately, my Python knowledge isn't expansive enough to be able to fix the issue, but I assume using the pytz module might be able to help out with this?
(2016-03-07, 17:25)eracknaphobia Wrote: Makes sense. I'll look into switching the time functions to the more reliable pytz library. Thanks for doing the leg work
(2016-03-08, 17:13)eracknaphobia Wrote: Update 2016.3.8 Released
- Fix for time error attempt #2
ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.OverflowError'>
Error Contents: mktime argument out of range
Traceback (most recent call last):
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.nbcsnliveextra/nbcsn.py", line 478, in <module>
LIVE_AND_UPCOMING()
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.nbcsnliveextra/nbcsn.py", line 37, in LIVE_AND_UPCOMING
SCRAPE_VIDEOS(ROOT_URL+'mcms/prod/nbc-upcoming-ios.json')
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.nbcsnliveextra/nbcsn.py", line 83, in SCRAPE_VIDEOS
BUILD_VIDEO_LINK(item)
File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.nbcsnliveextra/nbcsn.py", line 172, in BUILD_VIDEO_LINK
event_start = datetime.fromtimestamp(time.mktime(time.strptime(start_time, pattern)))
OverflowError: mktime argument out of range
-->End of Python script error report<--