aboutsummaryrefslogtreecommitdiffstats
path: root/yt_dlp/extractor/streamcz.py
diff options
context:
space:
mode:
authoradamanldo <97370646+adamanldo@users.noreply.github.com>2022-05-20 09:19:13 -0400
committerGitHub <noreply@github.com>2022-05-20 06:19:13 -0700
commit854b0d325e36acddef7a798be21a98756d86ca89 (patch)
treec2fa183451d84bd0206c74c3be1f072f1d4db6ce /yt_dlp/extractor/streamcz.py
parent79c318937bd3d2bdd348b94465101925b146d14d (diff)
downloadhypervideo-pre-854b0d325e36acddef7a798be21a98756d86ca89.tar.lz
hypervideo-pre-854b0d325e36acddef7a798be21a98756d86ca89.tar.xz
hypervideo-pre-854b0d325e36acddef7a798be21a98756d86ca89.zip
[StreamCZ] Fix extractor (#3789)
Closes #3579 Authored by: dirkf, adamanldo
Diffstat (limited to 'yt_dlp/extractor/streamcz.py')
-rw-r--r--yt_dlp/extractor/streamcz.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yt_dlp/extractor/streamcz.py b/yt_dlp/extractor/streamcz.py
index 85fc3a3c3..849a9882d 100644
--- a/yt_dlp/extractor/streamcz.py
+++ b/yt_dlp/extractor/streamcz.py
@@ -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