Closed RustyKnight closed 8 years ago
Are you on Mac OS X or iOS/AppleTV?
MacOS, should have mentioned it
Thought so. It's an issue we've seen with newer python shipped with Kodi. I have a fix that hasn't been pushed yet.
I'll get back to you when it's ready.
Cheers
Thanks for the heads up, does it also affect Channel 7? We've been having an issue with that as well, but I've not had time to log it
Yeah, most of them. I think we have the fix in for iView already though. Is that working for you?
Yeah, iView is the only that seems to working (personally only really use iView and SBS, my wife likes all the others as well)
@RustyKnight I've just released v1.0.9 with the SSL fix. Can you test it and let me know if that works? Thanks
I downloaded and installed v1.0.9 via Kodi's updater and tried playing a video but it failed, I'll try and get some logs tonight
MacOS 10.11.6 Kodi 17b1 SBS 1.09
19:11:46 T:140735142719488 DEBUG: ------ Window Init (DialogBusy.xml) ------
19:11:46 T:123145304526848 DEBUG: [SBS On Demand v1.0.9] XBMC/Kodi 17.0-BETA1 running on OSX
19:11:46 T:123145304526848 DEBUG: [SBS On Demand v1.0.9] Loading add-on with params: {'category': 'Programs', 'section': 'Documentary'}
19:11:46 T:123145304526848 DEBUG: [SBS On Demand v1.0.9] Making section list
19:11:46 T:123145304526848 DEBUG: [SBS On Demand v1.0.9] Fetching section: Documentary
19:11:46 T:123145304526848 DEBUG: [SBS On Demand v1.0.9] Fetching category: Programs
19:11:47 T:123145304526848 INFO: CPythonInvoker(4, /Users/shane/Library/Application Support/Kodi/addons/plugin.video.sbs/default.py): script successfully run
19:11:47 T:140735142719488 DEBUG: Saving fileitems [plugin://plugin.video.sbs/?category=Programs§ion=Documentary]
19:11:47 T:140735142719488 DEBUG: -- items: 46, sort method: 0, ascending: false
19:11:47 T:123145304526848 INFO: Python script stopped
19:11:47 T:123145304526848 DEBUG: Thread LanguageInvoker 123145304526848 terminating
19:11:47 T:123145304526848 DEBUG: Thread BackgroundLoader start, auto delete: false
19:11:47 T:140735142719488 DEBUG: Keyboard: scancode: 0x24, sym: 0x000d, unicode: 0x0000, modifier: 0x0
19:11:47 T:123145304526848 DEBUG: Thread BackgroundLoader 123145304526848 terminating
19:11:47 T:123145305600000 DEBUG: GetImageHash - unable to stat url
19:11:47 T:140735142719488 DEBUG: ------ Window Deinit (DialogBusy.xml) ------
19:11:48 T:140735142719488 DEBUG: Keyboard: scancode: 0x7d, sym: 0x0112, unicode: 0xf701, modifier: 0x0
19:11:48 T:140735142719488 DEBUG: OnKey: down (0xf081) pressed, action is Down
19:11:48 T:123145305600000 DEBUG: GetImageHash - unable to stat url
19:11:48 T:140735142719488 DEBUG: Keyboard: scancode: 0x7d, sym: 0x0112, unicode: 0x0000, modifier: 0x0
19:11:48 T:140735142719488 DEBUG: Keyboard: scancode: 0x7d, sym: 0x0112, unicode: 0xf701, modifier: 0x0
19:11:48 T:140735142719488 DEBUG: OnKey: down (0xf081) pressed, action is Down
19:11:48 T:140735142719488 DEBUG: Keyboard: scancode: 0x7d, sym: 0x0112, unicode: 0x0000, modifier: 0x0
19:11:48 T:140735142719488 DEBUG: Keyboard: scancode: 0x7d, sym: 0x0112, unicode: 0xf701, modifier: 0x0
19:11:48 T:140735142719488 DEBUG: OnKey: down (0xf081) pressed, action is Down
19:11:48 T:140735142719488 DEBUG: Keyboard: scancode: 0x7d, sym: 0x0112, unicode: 0x0000, modifier: 0x0
19:11:48 T:140735142719488 DEBUG: Keyboard: scancode: 0x7d, sym: 0x0112, unicode: 0xf701, modifier: 0x0
19:11:48 T:140735142719488 DEBUG: OnKey: down (0xf081) pressed, action is Down
19:11:48 T:140735142719488 DEBUG: Keyboard: scancode: 0x7d, sym: 0x0112, unicode: 0x0000, modifier: 0x0
19:11:49 T:140735142719488 DEBUG: Keyboard: scancode: 0x7d, sym: 0x0112, unicode: 0xf701, modifier: 0x0
19:11:49 T:140735142719488 DEBUG: OnKey: down (0xf081) pressed, action is Down
19:11:49 T:140735142719488 DEBUG: Keyboard: scancode: 0x7d, sym: 0x0112, unicode: 0x0000, modifier: 0x0
19:11:49 T:140735142719488 DEBUG: Keyboard: scancode: 0x7d, sym: 0x0112, unicode: 0xf701, modifier: 0x0
19:11:49 T:140735142719488 DEBUG: OnKey: down (0xf081) pressed, action is Down
19:11:49 T:140735142719488 DEBUG: Keyboard: scancode: 0x7d, sym: 0x0112, unicode: 0x0000, modifier: 0x0
19:11:49 T:140735142719488 DEBUG: Keyboard: scancode: 0x7d, sym: 0x0112, unicode: 0xf701, modifier: 0x0
19:11:49 T:140735142719488 DEBUG: OnKey: down (0xf081) pressed, action is Down
19:11:49 T:140735142719488 DEBUG: Keyboard: scancode: 0x7d, sym: 0x0112, unicode: 0x0000, modifier: 0x0
19:11:49 T:140735142719488 DEBUG: Keyboard: scancode: 0x7d, sym: 0x0112, unicode: 0xf701, modifier: 0x0
19:11:49 T:140735142719488 DEBUG: OnKey: down (0xf081) pressed, action is Down
19:11:49 T:123145305600000 DEBUG: CurlFile::Open(0x7fd88695ef90) http://media.sbs.com.au/video/upload_media/2488_cold-war-hot-jets-sml.gif
19:11:49 T:123145305600000 INFO: easy_aquire - Created session to http://media.sbs.com.au
19:11:49 T:140735142719488 DEBUG: Keyboard: scancode: 0x7d, sym: 0x0112, unicode: 0x0000, modifier: 0x0
19:11:49 T:123145305600000 DEBUG: DoWork - took 171 ms to load http://media.sbs.com.au/video/upload_media/2488_cold-war-hot-jets-sml.gif
19:11:50 T:140735142719488 DEBUG: Keyboard: scancode: 0x24, sym: 0x000d, unicode: 0x000d, modifier: 0x0
19:11:50 T:140735142719488 DEBUG: OnKey: return (0xf00d) pressed, action is Select
19:11:50 T:140735142719488 DEBUG: CGUIMediaWindow::GetDirectory (plugin://plugin.video.sbs/?entries_url=http%3A%2F%2Fwww.sbs.com.au%2Fapi%2Fvideo_feed%2Ff%2FBgtm9B%2Fsbs-app-section-programs%2F%3FbyCustomValue%3D%257BpilatDealcode%257D%257B159105%257D%26count%3Dtrue%26context%3Dandroid%26form%3Djson)
19:11:50 T:140735142719488 DEBUG: ParentPath = [plugin://plugin.video.sbs/?category=Programs§ion=Documentary]
19:11:50 T:123145305063424 DEBUG: StartScript - calling plugin SBS On Demand('plugin://plugin.video.sbs/','4','?entries_url=http%3A%2F%2Fwww.sbs.com.au%2Fapi%2Fvideo_feed%2Ff%2FBgtm9B%2Fsbs-app-section-programs%2F%3FbyCustomValue%3D%257BpilatDealcode%257D%257B159105%257D%26count%3Dtrue%26context%3Dandroid%26form%3Djson')
19:11:50 T:123145303990272 DEBUG: Thread LanguageInvoker start, auto delete: false
19:11:50 T:123145303990272 INFO: initializing python engine.
19:11:50 T:123145303990272 DEBUG: CPythonInvoker(5, /Users/shane/Library/Application Support/Kodi/addons/plugin.video.sbs/default.py): start processing
19:11:50 T:123145307746304 DEBUG: CAddonDatabase::SetLastUsed[plugin.video.sbs] took 2 ms
19:11:50 T:123145303990272 DEBUG: -->Python Interpreter Initialized<--
19:11:50 T:123145303990272 DEBUG: CPythonInvoker(5, /Users/shane/Library/Application Support/Kodi/addons/plugin.video.sbs/default.py): the source file to load is "/Users/shane/Library/Application Support/Kodi/addons/plugin.video.sbs/default.py"
19:11:50 T:123145303990272 DEBUG: CPythonInvoker(5, /Users/shane/Library/Application Support/Kodi/addons/plugin.video.sbs/default.py): setting the Python path to /Users/shane/Library/Application Support/Kodi/addons/plugin.video.sbs:/Users/shane/Library/Application Support/Kodi/addons/script.common.plugin.cache/lib:/Users/shane/Library/Application Support/Kodi/addons/script.module.beautifulsoup/lib:/Applications/Kodi.app/Contents/Libraries/lib/python2.7/site-packages/setuptools-18.4-py2.7.egg:/Applications/Kodi.app/Contents/Libraries/lib/python2.7/site-packages/Pillow-3.0.0-py2.7-macosx-10.4-x86_64.egg:/Applications/Kodi.app/Contents/Libraries:/Applications/Kodi.app/Contents/Libraries/lib/python27.zip:/Applications/Kodi.app/Contents/Libraries/lib/python2.7:/Applications/Kodi.app/Contents/Libraries/lib/python2.7/plat-darwin:/Applications/Kodi.app/Contents/Libraries/lib/python2.7/plat-mac:/Applications/Kodi.app/Contents/Libraries/lib/python2.7/plat-mac/lib-scriptpackages:/Applications/Kodi.app/Contents/Libraries/lib/python2.7/lib-tk:/Applications/Kodi.app/Contents/Libraries/lib/python2.7/lib-old:/Applications/Kodi.app/Contents/Libraries/lib/python2.7/lib-dynload:/Applications/Kodi.app/Contents/Libraries/lib/python2.7/site-packages
19:11:50 T:123145303990272 DEBUG: CPythonInvoker(5, /Users/shane/Library/Application Support/Kodi/addons/plugin.video.sbs/default.py): entering source directory /Users/shane/Library/Application Support/Kodi/addons/plugin.video.sbs
19:11:50 T:123145303990272 DEBUG: CPythonInvoker(5, /Users/shane/Library/Application Support/Kodi/addons/plugin.video.sbs/default.py): instantiating addon using automatically obtained id of "plugin.video.sbs" dependent on version 2.1.0 of the xbmc.python api
19:11:50 T:140735142719488 DEBUG: ------ Window Init (DialogBusy.xml) ------
19:11:50 T:123145303990272 DEBUG: [SBS On Demand v1.0.9] XBMC/Kodi 17.0-BETA1 running on OSX
19:11:50 T:123145303990272 DEBUG: [SBS On Demand v1.0.9] Loading add-on with params: {'entries_url': 'http://www.sbs.com.au/api/video_feed/f/Bgtm9B/sbs-app-section-programs/?byCustomValue=%7BpilatDealcode%7D%7B159105%7D&count=true&context=android&form=json'}
19:11:50 T:123145303990272 DEBUG: [SBS On Demand v1.0.9] Making entries list
19:11:51 T:123145303990272 DEBUG: [SBS On Demand v1.0.9] Fetching URL: http://www.sbs.com.au/api/video_feed/f/Bgtm9B/sbs-app-section-programs/?byCustomValue=%7BpilatDealcode%7D%7B159105%7D&count=true&context=android&form=json
19:11:51 T:123145303990272 INFO: CPythonInvoker(5, /Users/shane/Library/Application Support/Kodi/addons/plugin.video.sbs/default.py): script successfully run
19:11:51 T:140735142719488 DEBUG: Saving fileitems [plugin://plugin.video.sbs/?entries_url=http%3A%2F%2Fwww.sbs.com.au%2Fapi%2Fvideo_feed%2Ff%2FBgtm9B%2Fsbs-app-section-programs%2F%3FbyCustomValue%3D%257BpilatDealcode%257D%257B159105%257D%26count%3Dtrue%26context%3Dandroid%26form%3Djson]
19:11:51 T:140735142719488 DEBUG: -- items: 2, sort method: 0, ascending: false
19:11:51 T:123145304526848 DEBUG: Thread BackgroundLoader start, auto delete: false
19:11:51 T:123145303990272 INFO: Python script stopped
19:11:51 T:123145303990272 DEBUG: Thread LanguageInvoker 123145303990272 terminating
19:11:51 T:140735142719488 DEBUG: Keyboard: scancode: 0x24, sym: 0x000d, unicode: 0x0000, modifier: 0x0
19:11:51 T:123145304526848 DEBUG: Thread BackgroundLoader 123145304526848 terminating
19:11:51 T:123145305600000 DEBUG: GetImageHash - unable to stat url
19:11:51 T:140735142719488 DEBUG: ------ Window Deinit (DialogBusy.xml) ------
19:11:52 T:140735142719488 DEBUG: Keyboard: scancode: 0x7d, sym: 0x0112, unicode: 0xf701, modifier: 0x0
19:11:52 T:140735142719488 DEBUG: OnKey: down (0xf081) pressed, action is Down
19:11:52 T:123145307746304 DEBUG: GetImageHash - unable to stat url
19:11:52 T:140735142719488 DEBUG: Keyboard: scancode: 0x7d, sym: 0x0112, unicode: 0x0000, modifier: 0x0
19:11:53 T:140735142719488 DEBUG: Keyboard: scancode: 0x24, sym: 0x000d, unicode: 0x000d, modifier: 0x0
19:11:53 T:140735142719488 DEBUG: OnKey: return (0xf00d) pressed, action is Select
19:11:53 T:140735142719488 DEBUG: OnPlayMedia plugin://plugin.video.sbs/?play=true&rating=PG&date=2016-08-18+15%3A30%3A00&description=This+series+examines+the+British+companies+which+pioneered+the+rapid+development+of+the+jet+aircraft%2C+and+the+heroic+test+pilots+who+risked+life+and+limb+in+untried+machines.+%28Part+1+of+2%29+%23sbsdoco&title=Cold+War%2C+Hot+Jets&subfilename=480776&thumbnail=http%3A%2F%2Fvideocdn.sbs.com.au%2Fu%2Fvideo%2FSBS%2Fmanaged%2Fimages%2F2015%2F01%2F02%2F376824899674_01021001-large.jpg&episode_title=Wide+Blue+Yonder&duration=3000&id=376824899674
19:11:53 T:140735142719488 DEBUG: StartScript - calling plugin SBS On Demand('plugin://plugin.video.sbs/','5','?play=true&rating=PG&date=2016-08-18+15%3A30%3A00&description=This+series+examines+the+British+companies+which+pioneered+the+rapid+development+of+the+jet+aircraft%2C+and+the+heroic+test+pilots+who+risked+life+and+limb+in+untried+machines.+%28Part+1+of+2%29+%23sbsdoco&title=Cold+War%2C+Hot+Jets&subfilename=480776&thumbnail=http%3A%2F%2Fvideocdn.sbs.com.au%2Fu%2Fvideo%2FSBS%2Fmanaged%2Fimages%2F2015%2F01%2F02%2F376824899674_01021001-large.jpg&episode_title=Wide+Blue+Yonder&duration=3000&id=376824899674')
19:11:53 T:123145303990272 DEBUG: Thread LanguageInvoker start, auto delete: false
19:11:53 T:123145303990272 INFO: initializing python engine.
19:11:53 T:123145303990272 DEBUG: CPythonInvoker(6, /Users/shane/Library/Application Support/Kodi/addons/plugin.video.sbs/default.py): start processing
19:11:53 T:123145307209728 DEBUG: CAnnouncementManager - Announcement: OnAdd from xbmc
19:11:53 T:123145307209728 DEBUG: GOT ANNOUNCEMENT, type: 2, from xbmc, message OnAdd
19:11:53 T:123145304526848 DEBUG: Thread scriptobs start, auto delete: false
19:11:53 T:123145303990272 DEBUG: -->Python Interpreter Initialized<--
19:11:53 T:123145303990272 DEBUG: CPythonInvoker(6, /Users/shane/Library/Application Support/Kodi/addons/plugin.video.sbs/default.py): the source file to load is "/Users/shane/Library/Application Support/Kodi/addons/plugin.video.sbs/default.py"
19:11:53 T:123145303990272 DEBUG: CPythonInvoker(6, /Users/shane/Library/Application Support/Kodi/addons/plugin.video.sbs/default.py): setting the Python path to /Users/shane/Library/Application Support/Kodi/addons/plugin.video.sbs:/Users/shane/Library/Application Support/Kodi/addons/script.common.plugin.cache/lib:/Users/shane/Library/Application Support/Kodi/addons/script.module.beautifulsoup/lib:/Applications/Kodi.app/Contents/Libraries/lib/python2.7/site-packages/setuptools-18.4-py2.7.egg:/Applications/Kodi.app/Contents/Libraries/lib/python2.7/site-packages/Pillow-3.0.0-py2.7-macosx-10.4-x86_64.egg:/Applications/Kodi.app/Contents/Libraries:/Applications/Kodi.app/Contents/Libraries/lib/python27.zip:/Applications/Kodi.app/Contents/Libraries/lib/python2.7:/Applications/Kodi.app/Contents/Libraries/lib/python2.7/plat-darwin:/Applications/Kodi.app/Contents/Libraries/lib/python2.7/plat-mac:/Applications/Kodi.app/Contents/Libraries/lib/python2.7/plat-mac/lib-scriptpackages:/Applications/Kodi.app/Contents/Libraries/lib/python2.7/lib-tk:/Applications/Kodi.app/Contents/Libraries/lib/python2.7/lib-old:/Applications/Kodi.app/Contents/Libraries/lib/python2.7/lib-dynload:/Applications/Kodi.app/Contents/Libraries/lib/python2.7/site-packages
19:11:53 T:123145303990272 DEBUG: CPythonInvoker(6, /Users/shane/Library/Application Support/Kodi/addons/plugin.video.sbs/default.py): entering source directory /Users/shane/Library/Application Support/Kodi/addons/plugin.video.sbs
19:11:53 T:123145303990272 DEBUG: CPythonInvoker(6, /Users/shane/Library/Application Support/Kodi/addons/plugin.video.sbs/default.py): instantiating addon using automatically obtained id of "plugin.video.sbs" dependent on version 2.1.0 of the xbmc.python api
19:11:53 T:140735142719488 DEBUG: ------ Window Init (DialogBusy.xml) ------
19:11:53 T:123145303990272 DEBUG: [SBS On Demand v1.0.9] XBMC/Kodi 17.0-BETA1 running on OSX
19:11:53 T:123145303990272 DEBUG: [SBS On Demand v1.0.9] Loading add-on with params: {'rating': 'PG', 'play': 'true', 'description': 'This series examines the British companies which pioneered the rapid development of the jet aircraft, and the heroic test pilots who risked life and limb in untried machines. (Part 1 of 2) #sbsdoco', 'title': 'Cold War, Hot Jets', 'duration': '3000', 'subfilename': '480776', 'id': '376824899674', 'episode_title': 'Wide Blue Yonder', 'date': '2016-08-18 15:30:00', 'thumbnail': 'http://videocdn.sbs.com.au/u/video/SBS/managed/images/2015/01/02/376824899674_01021001-large.jpg'}
19:11:53 T:123145303990272 DEBUG: [SBS On Demand v1.0.9] Fetching cached token if possible
19:11:53 T:123145303990272 DEBUG: [SBS On Demand v1.0.9] Fetching new auth token
19:11:53 T:123145303990272 DEBUG: [SBS On Demand v1.0.9] Traceback (most recent call last):
File "/Users/shane/Library/Application Support/Kodi/addons/plugin.video.sbs/resources/lib/play.py", line 43, in play
stream_url = comm.get_stream(p.id)
File "/Users/shane/Library/Application Support/Kodi/addons/plugin.video.sbs/resources/lib/comm.py", line 277, in get_stream
resp = fetch_protected_url(config.stream_url % program_id)
File "/Users/shane/Library/Application Support/Kodi/addons/plugin.video.sbs/resources/lib/comm.py", line 107, in fetch_protected_url
token = fetch_cache_token()
File "/Users/shane/Library/Application Support/Kodi/addons/plugin.video.sbs/resources/lib/comm.py", line 102, in fetch_cache_token
return cache.cacheFunction(fetch_auth_token)
File "/Users/shane/Library/Application Support/Kodi/addons/script.common.plugin.cache/lib/StorageServer.py", line 570, in cacheFunction
ret_val = funct(*args)
File "/Users/shane/Library/Application Support/Kodi/addons/plugin.video.sbs/resources/lib/comm.py", line 96, in fetch_auth_token
raise Exception('Failed to fetch SBS streaming token: %s' % e)
Exception: Failed to fetch SBS streaming token: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)>
19:11:54 T:123145303990272 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'urllib2.URLError'>
Error Contents: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)>
Traceback (most recent call last):
File "/Users/shane/Library/Application Support/Kodi/addons/plugin.video.sbs/default.py", line 41, in <module>
play.play(params_str)
File "/Users/shane/Library/Application Support/Kodi/addons/plugin.video.sbs/resources/lib/play.py", line 92, in play
utils.handle_error("Unable to play video")
File "/Users/shane/Library/Application Support/Kodi/addons/plugin.video.sbs/resources/lib/utils.py", line 251, in handle_error
latest_version = issue_reporter.get_latest_version()
File "/Users/shane/Library/Application Support/Kodi/addons/plugin.video.sbs/resources/lib/issue_reporter.py", line 148, in get_latest_version
versions = get_versions()
File "/Users/shane/Library/Application Support/Kodi/addons/plugin.video.sbs/resources/lib/issue_reporter.py", line 135, in get_versions
tags = fetch_tags()
File "/Users/shane/Library/Application Support/Kodi/addons/plugin.video.sbs/resources/lib/issue_reporter.py", line 128, in fetch_tags
return json.load(urllib2.urlopen("%s/tags" % config.GITHUB_API_URL))
File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.10_x86_64-target/lib/python2.7/urllib2.py", line 154, in urlopen
File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.10_x86_64-target/lib/python2.7/urllib2.py", line 429, in open
File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.10_x86_64-target/lib/python2.7/urllib2.py", line 447, in _open
File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.10_x86_64-target/lib/python2.7/urllib2.py", line 407, in _call_chain
File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.10_x86_64-target/lib/python2.7/urllib2.py", line 1241, in https_open
File "/Users/Shared/jenkins/workspace/OSX-64/tools/depends/xbmc-depends/macosx10.10_x86_64-target/lib/python2.7/urllib2.py", line 1198, in do_open
URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:590)>
-->End of Python script error report<--
19:11:54 T:140735142719488 DEBUG: ------ Window Init (DialogNotification.xml) ------
19:11:54 T:123145303990272 INFO: Python script stopped
19:11:54 T:123145303990272 DEBUG: Thread LanguageInvoker 123145303990272 terminating
Had to borrow a mac to replicate the issue. Looks like original fix didn't quite fix the whole issue.
I've just released v1.1.0 now that does actually fix the issue on Kodi v17 on Mac OS X :)
v1.1.10 seems to have fixed it now ;)
Kodi 17.0 Beta 1 SBS Plugin - Master/latest (tried with the version from the repo 1.3 with the same result)