[StreamCZ] Fix extractor (#3789)

Closes #3579
Authored by: dirkf, adamanldo
This commit is contained in:
adamanldo 2022-05-20 09:19:13 -04:00 committed by GitHub
parent 79c318937b
commit 854b0d325e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -52,8 +52,8 @@ class StreamCZIE(InfoExtractor):
def _extract_formats(self, spl_url, video):
for ext, pref, streams in (
('ts', -1, traverse_obj(video, ('http_stream', 'qualities'))),
('mp4', 1, video.get('mp4'))):
('ts', -1, traverse_obj(video, ('http_stream', 'qualities')) or {}),
('mp4', 1, video.get('mp4') or {})):
for format_id, stream in streams.items():
if not stream.get('url'):
continue