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

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: 16.0 Git:2016-02-25-a5f3a99-dirty Python Version: 2.6.5 (r265:79063, Feb 25 2016, 15:33:57) [GCC 4.8] Operating System: linux3 (Linux 3.10.0 armv7l) IP Address: 114.76.173.112 (c114-76-173-112.blktn4.nsw.optusnet.com.au) ISP: Optus Kodi URL: ?action=listmatches&dummy=None&match_id=None&title=Rd 18: Storm v Eels (1st Half)&video_id=JzYmp1YjE6T93eYDp6a9z_H2mcmnXaHI&live=false&score=None&time=9:22 AM&desc=First half replay of the clash between the Storm & Eels&thumb=http%3A%2F%2Fbpvideos.telstra.insnw.net%2Fweb%2Fimages%2F20170708212934a_326x184.jpg Python Path:

/mnt/internal_sd/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.nrl-live
/mnt/internal_sd/Android/data/org.xbmc.kodi/files/.kodi/addons/script.common.plugin.cache/lib
/mnt/internal_sd/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.beautifulsoup4/lib
/mnt/internal_sd/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.requests/lib
/
/data/app/org.xbmc.kodi-1.apk/assets/python2.6/lib/python26.zip
/data/app/org.xbmc.kodi-1.apk/assets/python2.6/lib/python2.6
/data/app/org.xbmc.kodi-1.apk/assets/python2.6/lib/python2.6/plat-linux3
/data/app/org.xbmc.kodi-1.apk/assets/python2.6/lib/python2.6/lib-tk
/data/app/org.xbmc.kodi-1.apk/assets/python2.6/lib/python2.6/lib-old
/data/app/org.xbmc.kodi-1.apk/assets/python2.6/lib/python2.6/lib-dynload
/mnt/internal_sd/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.nrl-live/resources/lib

Traceback

Traceback (most recent call last):
  File "/mnt/internal_sd/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 "/mnt/internal_sd/Android/data/org.xbmc.kodi/files/.kodi/addons/plugin.video.nrl-live/resources/lib/ooyalahelper.py", line 221, in get_m3u8_playlist
    login_token = get_user_token()
  File "/mnt/internal_sd/Android/data/org.xbmc.kodi/files/.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 "/mnt/internal_sd/Android/data/org.xbmc.kodi/files/.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