aussieaddons / plugin.video.afl-video

Kodi add-on for AFL Video
http://aussieaddons.com/addons/afl/
GNU General Public License v3.0
20 stars 6 forks source link

[XBMCBOT] - UnboundLocalError: local variable 'res' referenced before assignment #2579

Closed xbmcbot closed 6 years ago

xbmcbot commented 7 years ago

Automatic bug report from end-user.

Environment

Add-on Name: AFL Video Add-on ID: plugin.video.afl-video Add-on Version: 1.8.2 Kodi Version: 17.3 Git:20170524-147cec4 Python Version: 2.7.12 (default, May 24 2017, 22:13:16) [GCC 4.9.x 20150123 (prerelease)] Operating System: linux2 (Linux 3.14.29 armv8l) IP Address: 60.225.123.94 (CPE-60-225-123-94.hhui4.ken.bigpond.net.au) ISP: Telstra Internet Kodi URL: ?genre=Sport&ooyalaid=dnMWE5dDqkN3_YPIvbmXgXiDvjfbo6Ni&subscription_required=True&live=True&title=%5BCOLOR+green%5D%5BLIVE+NOW%5D%5B%2FCOLOR%5D+Collingwood+Vs+Adelaide+Crows Python Path:

/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.afl-video
/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.common.plugin.cache/lib
/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.beautifulsoup4/lib
/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.requests/lib
/
/data/app/org.xbmc.kodi-1/base.apk/assets/python2.7/lib/python27.zip
/data/app/org.xbmc.kodi-1/base.apk/assets/python2.7/lib/python2.7
/data/app/org.xbmc.kodi-1/base.apk/assets/python2.7/lib/python2.7/plat-linux2
/data/app/org.xbmc.kodi-1/base.apk/assets/python2.7/lib/python2.7/lib-tk
/data/app/org.xbmc.kodi-1/base.apk/assets/python2.7/lib/python2.7/lib-old
/data/app/org.xbmc.kodi-1/base.apk/assets/python2.7/lib/python2.7/lib-dynload
/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.afl-video/resources/lib

Traceback

Traceback (most recent call last):
  File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.afl-video/resources/lib/play.py", line 43, in play
    v.live, login_token)
  File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.afl-video/resources/lib/ooyalahelper.py", line 241, in get_m3u8_playlist
    embed_token = get_embed_token(login_token, video_id)
  File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.afl-video/resources/lib/ooyalahelper.py", line 134, in get_embed_token
    utils.log(res.text)
UnboundLocalError: local variable 'res' referenced before assignment

Full log