ZattooHIQ 1.6.7.3

  • It's probably been reported but I couldn't find it on the Forum:

    I'm using ZattooHIQ 1.6.7.3 on OSMC (latest release) and I cannot look at my recordings and told to look at the error [definition='1','0']log[/definition]. The Error [definition='1','0']log[/definition]:

    16:46:04.349 T:1506800384 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
    Error Type: <type 'exceptions.UnboundLocalError'>
    Error Contents: local variable 'label' referenced before assignment
    Traceback (most recent call last):
    File "/home/osmc/.kodi/addons/plugin.video.zattooHiQ/plugin.py", line 1492, in <module>
    main()
    File "/home/osmc/.kodi/addons/plugin.video.zattooHiQ/plugin.py", line 1383, in main
    elif action == 'recordings': build_recordingsList(addon_uri, addon_handle)
    File "/home/osmc/.kodi/addons/plugin.video.zattooHiQ/plugin.py", line 455, in build_recordingsLis
    label+='[COLOR '+color+']'+record['title']+'[/COLOR]'
    UnboundLocalError: local variable 'label' referenced before assignment
    -->End of Python script error report<--

    The fix was straightforward. I just initialised the variable "label" with - label='' in "/home/osmc/.kodi/addons/plugin.video.zattooHiQ/plugin.py"

    Code snippet:
    for record in resultData['recordings']:
    showInfo=_zattooDB_.getShowInfo(record['program_id'])
    #mark if show is future, running or finished
    start = int(time.mktime(time.strptime(record['start'], "%Y-%m-%dT%H:%M:%SZ"))) + _timezone_ # local timestamp
    end = int(time.mktime(time.strptime(record['end'], "%Y-%m-%dT%H:%M:%SZ"))) + _timezone_ # local timestamp
    position = int(time.mktime(time.strptime(record['position'], "%Y-%m-%dT%H:%M:%SZ"))) + _timezone_ # local timestamp
    now = time.time()
    duration = end - start
    color='red'
    label=''

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!