Skip to content

Getting "UnboundLocalError: local variable 'subtitle_stream' referenced before assignment" #45

@anvith08

Description

@anvith08

While trying to download a section from some shows, I get this error:

Succesfully logged in
Traceback (most recent call last):
  File "C:\Users\\WWE-Network-Downloader-master\main.py", line 109, in <module>
    stream_url = account.m3u8_stream(video_link[1])
  File "C:\Users\\WWE-Network-Downloader-master\wwe.py", line 103, in m3u8_stream
    return stream['hls'][0]['url'], subtitle_stream, chapters
UnboundLocalError: local variable 'subtitle_stream' referenced before assignment

How I could fix it:

added this line before the for loop in line 93

    subtitle_stream = None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions