cli: Check that the stream name exists before attempting to resolve it's true name.

This commit is contained in:
Christopher Rosell 2014-08-13 15:31:24 +02:00
parent b4470f3e7c
commit b8e7f8f93b
1 changed files with 1 additions and 1 deletions

View File

@ -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