aussieaddons / plugin.video.nrl-live

NRL Digital Pass addon for Kodi
GNU General Public License v3.0
2 stars 5 forks source link

[XBMCBOT] - UnboundLocalError: local variable 'token' referenced before assignment #633

Closed xbmcbot closed 6 years ago

xbmcbot commented 7 years ago

Automatic bug report from end-user.

Environment

Add-on Name: NRL Live Add-on ID: plugin.video.nrl-live Add-on Version: 1.1.8 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.10.79 armv7l) IP Address: 92.27.37.193 (bigron.homeserver.com) ISP: TalkTalk Kodi URL: ?action=listmatches&dummy=None&match_id=None&title=GF: Rabbitohs v Bulldogs (Hls)&video_id=hhMnR2cDq1e0cnpLwNd7QHfJ5uPJZfKL&live=false&score=None&time=10:38 PM&desc=Highlights of the 2014 NRL Telstra Premiership Grand Final between the Rabbitohs & Bulldogs&thumb=http%3A%2F%2Fbigpondvideo.com%2FWeb%2FImages%2FContent%2F20141005221627a_326x184.jpg Python Path:

/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.nrl-live
/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.nrl-live/resources/lib

Traceback

Traceback (most recent call last):
  File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.nrl-live/resources/lib/play.py", line 39, in play_video
    playlist = ooyalahelper.get_m3u8_playlist(video_id, live)
  File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.nrl-live/resources/lib/ooyalahelper.py", line 224, in get_m3u8_playlist
    secure_token_url = get_secure_token(authorize_url, video_id)
  File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.nrl-live/resources/lib/ooyalahelper.py", line 143, in get_secure_token
    return base64.b64decode(token)
UnboundLocalError: local variable 'token' referenced before assignment

Full log