mirror of https://github.com/streamlink/streamlink
cli: Check that the stream name exists before attempting to resolve it's true name.
This commit is contained in:
parent
b4470f3e7c
commit
b8e7f8f93b
|
@ -409,7 +409,7 @@ def fetch_streams_infinite(plugin, interval):
|
|||
def resolve_stream_name(streams, stream_name):
|
||||
"""Returns the real stream name of a synonym."""
|
||||
|
||||
if stream_name in STREAM_SYNONYMS:
|
||||
if stream_name in STREAM_SYNONYMS and stream_name in streams:
|
||||
for name, stream in streams.items():
|
||||
if stream is streams[stream_name] and name not in STREAM_SYNONYMS:
|
||||
return name
|
||||
|
|
Loading…
Reference in New Issue