[mediathekviewweb] Fixed future and everywhere detection

This commit is contained in:
ckaotik 2021-02-21 12:53:21 +01:00
parent 14384d4a6f
commit 3e3b11c80b

View File

@ -210,9 +210,9 @@ class MediathekViewWebIE(InfoExtractor):
if len(query) > 0:
# Detect global flags, MVW is very strict about accepted values.
extractor = MediathekViewWebSearchIE(self._downloader)
if query.get('everywhere', [])[0] == 'true':
if query.get('everywhere', []) == ['true']:
extractor._everywhere = True
if query.get('future', [])[0] == 'false':
if query.get('future', []) == ['false']:
extractor._future = False
return extractor._real_extract('mvwsearchall:' + search)