aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorPetr Vaněk <arkamar@atlas.cz>2022-02-12 15:02:08 +0100
committerdirkf <fieldhouse@gmx.net>2022-02-14 07:07:05 +0000
commit85bf26c1d01f94b83476703e5c70022f01164ccf (patch)
tree55e5c583a5557ac75112505d892664cb1b3cd532 /youtube_dl
parentd8adca1b664fceb07f2b28b55c7e1855407296ea (diff)
downloadyoutube-dl-85bf26c1d01f94b83476703e5c70022f01164ccf.tar.xz
resolve problem with unpacking operator for <py3.5
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/streamcz.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/youtube_dl/extractor/streamcz.py b/youtube_dl/extractor/streamcz.py
index 60e770448..179bdcaba 100644
--- a/youtube_dl/extractor/streamcz.py
+++ b/youtube_dl/extractor/streamcz.py
@@ -6,6 +6,7 @@ from .common import InfoExtractor
from ..utils import (
float_or_none,
int_or_none,
+ merge_dicts,
parse_codecs,
urljoin,
)
@@ -58,7 +59,7 @@ class StreamCZIE(InfoExtractor):
for format_id, stream in streams.items():
if not stream.get('url'):
continue
- yield {
+ yield merge_dicts({
'format_id': '{}-{}'.format(format_id, ext),
'ext': ext,
'source_preference': pref,
@@ -67,8 +68,7 @@ class StreamCZIE(InfoExtractor):
'duration': float_or_none(stream.get('duration'), scale=1000),
'width': stream.get('resolution', 2 * [0])[0] or None,
'height': stream.get('resolution', 2 * [0])[1] or int_or_none(format_id.replace('p', '')),
- **parse_codecs(stream.get('codec')),
- }
+ }, parse_codecs(stream.get('codec')))
def _real_extract(self, url):
display_id, video_id = re.match(self._VALID_URL, url).groups()