Skip to content

Commit

Permalink
[cbsnews] Fix extraction for python <3.6 (closes #23359)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Apr 16, 2021
1 parent 596b266 commit 9f6c03a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/cbsnews.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')


Expand Down

0 comments on commit 9f6c03a

Please sign in to comment.