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 #2562

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: 15.2 Git:02e7013 Python Version: 2.7.3 (default, Jan 24 2016, 00:48:44) [GCC 4.9.3] Operating System: linux2 (Linux 4.1.16 x86_64) IP Address: 101.181.88.143 (CPE-101-181-88-143.lnse5.cha.bigpond.net.au) ISP: Telstra Internet Kodi URL: ?description=Watch+the+full+replay+of+the+first+quarter&title=Rd+14%3A+Crows+v+Hawks+Q1&subscription_required=True&date=2017-06-23+00%3A00%3A00&genre=Sport&ooyalaid=BqZTdvYjE6ZS9IByDFi_hPo_jQ-FKDHL&thumbnail=http%3A%2F%2Fs.afl.com.au%2Fstaticfile%2FAFL+Tenant%2FMedia%2FVideos%2FThumbnails%2F2017%2FJun%2F920094_thumb_326x184.jpg Python Path:

/storage/.kodi/addons/plugin.video.afl-video
/storage/.kodi/addons/script.common.plugin.cache/lib
/storage/.kodi/addons/script.module.beautifulsoup4/lib
/storage/.kodi/addons/script.module.requests/lib
/usr/lib/python27.zip
/usr/lib/python2.7
/usr/lib/python2.7/plat-linux2
/usr/lib/python2.7/lib-tk
/usr/lib/python2.7/lib-old
/usr/lib/python2.7/lib-dynload
/usr/lib/python2.7/site-packages
/usr/lib/python2.7/site-packages/gtk-2.0
/storage/.kodi/addons/plugin.video.afl-video/resources/lib

Traceback

Traceback (most recent call last):
  File "/storage/.kodi/addons/plugin.video.afl-video/resources/lib/play.py", line 40, in play
    login_token = ooyalahelper.get_user_token()
  File "/storage/.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/.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