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

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~ff6303f Python Version: 2.7.10 (default, May 25 2017, 07:45:03) [GCC 4.9.2] Operating System: linux2 (Linux 3.10.104 armv7l) IP Address: 124.191.106.36 (CPE-124-191-106-36.wxrb1.lon.bigpond.net.au) ISP: Telstra Internet Kodi URL: ?action=listmatches&dummy=None&match_id=None&title=GF: Storm v Sharks (1)&video_id=1uM3g3NjE6KEf4Jy8f46NbuWWN96rlHf&live=false&score=None&time=10:00 AM&desc=1st half replay of the 2016 NRL Telstra Premiership Grand Final between the Storm & Sharks&thumb=http%3A%2F%2Fbigpondvideo.com%2Fweb%2Fimages%2Fcontent%2F20161002212955a_326x184.jpg Python Path:

/root/.kodi/addons/plugin.video.nrl-live
/root/.kodi/addons/script.common.plugin.cache/lib
/root/.kodi/addons/script.module.beautifulsoup4/lib
/root/.kodi/addons/script.module.requests/lib
/
/root/Programs/pylib
/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
/root/.kodi/addons/plugin.video.nrl-live/resources/lib

Traceback

Traceback (most recent call last):
  File "/root/.kodi/addons/plugin.video.nrl-live/resources/lib/play.py", line 39, in play_video
    playlist = ooyalahelper.get_m3u8_playlist(video_id, live)
  File "/root/.kodi/addons/plugin.video.nrl-live/resources/lib/ooyalahelper.py", line 221, in get_m3u8_playlist
    login_token = get_user_token()
  File "/root/.kodi/addons/plugin.video.nrl-live/resources/lib/ooyalahelper.py", line 61, in get_user_token
    token = telstra_auth.get_free_token(username, password)
  File "/root/.kodi/addons/plugin.video.nrl-live/resources/lib/telstra_auth.py", line 147, in get_free_token
    ph_no, offer_id, token))
UnboundLocalError: local variable 'ph_no' referenced before assignment

Full log