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 'ph_no' referenced before assignment #2561

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.1 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: 58.170.66.30 (CPE-58-170-66-30.lns4.woo.bigpond.net.au) ISP: Telstra Internet Kodi URL: ?description=Watch+the+full+replay+of+the+fourth+quarter&title=Rd+14%3A+Saints+v+Suns+Q4&subscription_required=True&date=2017-06-25+00%3A00%3A00&genre=Sport&ooyalaid=o1Y2VwYjE6IyU8Nb5MFjI0ZX_NwTqT8d&thumbnail=http%3A%2F%2Fs.afl.com.au%2Fstaticfile%2FAFL+Tenant%2FMedia%2FVideos%2FThumbnails%2F2017%2FJun%2F920844_thumb_326x184.jpg 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-2/base.apk/assets/python2.7/lib/python27.zip
/data/app/org.xbmc.kodi-2/base.apk/assets/python2.7/lib/python2.7
/data/app/org.xbmc.kodi-2/base.apk/assets/python2.7/lib/python2.7/plat-linux2
/data/app/org.xbmc.kodi-2/base.apk/assets/python2.7/lib/python2.7/lib-tk
/data/app/org.xbmc.kodi-2/base.apk/assets/python2.7/lib/python2.7/lib-old
/data/app/org.xbmc.kodi-2/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 40, in play
    login_token = ooyalahelper.get_user_token()
  File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.afl-video/resources/lib/ooyalahelper.py", line 81, in get_user_token
    token = telstra_auth.get_token(username, password)
  File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.afl-video/resources/lib/telstra_auth.py", line 129, in get_token
    media_order_data = config.MEDIA_ORDER_JSON.format(ph_no,
UnboundLocalError: local variable 'ph_no' referenced before assignment

Full log