1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-09-03 00:25:08 +00:00

Update to ytdl-commit-9f6c03

[cbsnews] Fix extraction for python <3.6
9f6c03a006
This commit is contained in:
pukkandan
2021-04-17 08:32:33 +05:30
parent 5d34200268
commit 201c145953
5 changed files with 163 additions and 41 deletions

View File

@ -26,7 +26,7 @@ class CBSNewsEmbedIE(CBSIE):
def _real_extract(self, url):
item = self._parse_json(zlib.decompress(compat_b64decode(
compat_urllib_parse_unquote(self._match_id(url))),
-zlib.MAX_WBITS), None)['video']['items'][0]
-zlib.MAX_WBITS).decode('utf-8'), None)['video']['items'][0]
return self._extract_video_info(item['mpxRefId'], 'cbsnews')