Skip to content

Commit

Permalink
resolve problem with unpacking operator for <py3.5
Browse files Browse the repository at this point in the history
  • Loading branch information
arkamar authored and dirkf committed Feb 14, 2022
1 parent d8adca1 commit 85bf26c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions youtube_dl/extractor/streamcz.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from ..utils import (
float_or_none,
int_or_none,
merge_dicts,
parse_codecs,
urljoin,
)
Expand Down Expand Up @@ -58,7 +59,7 @@ def _extract_formats(self, spl_url, video):
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,
Expand All @@ -67,8 +68,7 @@ def _extract_formats(self, spl_url, video):
'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()
Expand Down

0 comments on commit 85bf26c

Please sign in to comment.