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

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:2017-05-29-1ac3310-dirty Python Version: 2.7.12 (default, May 29 2017, 14:18:30) [GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)] Operating System: darwin (Darwin 16.7.0 AppleTV5,3) IP Address: 61.68.228.192 (61-68-228-192.tpgi.com.au) ISP: TPG Internet Kodi URL: ?action=listmatches&dummy=None&match_id=None&title=SOO 3: QLD v NSW (2nd Half)&video_id=dwdjR3YjE6uoL7bRtNKotKYP9uc20npi&live=false&score=None&time=9:58 AM&desc=Second half replay of the deciding match between Queensland and New South Wales&thumb=http%3A%2F%2Fbpvideos.telstra.insnw.net%2Fweb%2Fimages%2F20170712224923a_326x184.jpg Python Path:

/var/mobile/Containers/Data/Application/D9FD232F-6D5B-4759-B3C2-B396C07B2820/Library/Caches/home/addons/plugin.video.nrl-live
/var/mobile/Containers/Data/Application/D9FD232F-6D5B-4759-B3C2-B396C07B2820/Library/Caches/home/addons/script.common.plugin.cache/lib
/var/mobile/Containers/Data/Application/D9FD232F-6D5B-4759-B3C2-B396C07B2820/Library/Caches/home/addons/script.module.beautifulsoup4/lib
/var/mobile/Containers/Data/Application/D9FD232F-6D5B-4759-B3C2-B396C07B2820/Library/Caches/home/addons/script.module.requests/lib
/var/containers/Bundle/Application/AA1906AB-FE4E-4AF5-B744-571D434844A6/Kodi.app/Frameworks/lib/python2.7/site-packages/setuptools-18.4-py2.7.egg
/var/containers/Bundle/Application/AA1906AB-FE4E-4AF5-B744-571D434844A6/Kodi.app/Frameworks/lib/python2.7/site-packages/Pillow-3.0.0-py2.7-macosx-10.4-x86_64.egg
/var/containers/Bundle/Application/AA1906AB-FE4E-4AF5-B744-571D434844A6/Kodi.app/Frameworks
/var/containers/Bundle/Application/AA1906AB-FE4E-4AF5-B744-571D434844A6/Kodi.app/Frameworks/lib/python27.zip
/var/containers/Bundle/Application/AA1906AB-FE4E-4AF5-B744-571D434844A6/Kodi.app/Frameworks/lib/python2.7
/var/containers/Bundle/Application/AA1906AB-FE4E-4AF5-B744-571D434844A6/Kodi.app/Frameworks/lib/python2.7/plat-darwin
/var/containers/Bundle/Application/AA1906AB-FE4E-4AF5-B744-571D434844A6/Kodi.app/Frameworks/lib/python2.7/plat-mac
/var/containers/Bundle/Application/AA1906AB-FE4E-4AF5-B744-571D434844A6/Kodi.app/Frameworks/lib/python2.7/plat-mac/lib-scriptpackages
/var/containers/Bundle/Application/AA1906AB-FE4E-4AF5-B744-571D434844A6/Kodi.app/Frameworks/lib/python2.7/lib-tk
/var/containers/Bundle/Application/AA1906AB-FE4E-4AF5-B744-571D434844A6/Kodi.app/Frameworks/lib/python2.7/lib-old
/var/containers/Bundle/Application/AA1906AB-FE4E-4AF5-B744-571D434844A6/Kodi.app/Frameworks/lib/python2.7/lib-dynload
/var/containers/Bundle/Application/AA1906AB-FE4E-4AF5-B744-571D434844A6/Kodi.app/Frameworks/lib/python2.7/site-packages
/var/mobile/Containers/Data/Application/D9FD232F-6D5B-4759-B3C2-B396C07B2820/Library/Caches/home/addons/plugin.video.nrl-live/resources/lib

Traceback

Traceback (most recent call last):
  File "/var/mobile/Containers/Data/Application/D9FD232F-6D5B-4759-B3C2-B396C07B2820/Library/Caches/home/addons/plugin.video.nrl-live/resources/lib/play.py", line 39, in play_video
    playlist = ooyalahelper.get_m3u8_playlist(video_id, live)
  File "/var/mobile/Containers/Data/Application/D9FD232F-6D5B-4759-B3C2-B396C07B2820/Library/Caches/home/addons/plugin.video.nrl-live/resources/lib/ooyalahelper.py", line 221, in get_m3u8_playlist
    login_token = get_user_token()
  File "/var/mobile/Containers/Data/Application/D9FD232F-6D5B-4759-B3C2-B396C07B2820/Library/Caches/home/addons/plugin.video.nrl-live/resources/lib/ooyalahelper.py", line 61, in get_user_token
    token = telstra_auth.get_free_token(username, password)
  File "/var/mobile/Containers/Data/Application/D9FD232F-6D5B-4759-B3C2-B396C07B2820/Library/Caches/home/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