Skip to content

Commit 9f6c03a

Browse files
committed
[cbsnews] Fix extraction for python <3.6 (closes ytdl-org#23359)
1 parent 596b266 commit 9f6c03a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

youtube_dl/extractor/cbsnews.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class CBSNewsEmbedIE(CBSIE):
2626
def _real_extract(self, url):
2727
item = self._parse_json(zlib.decompress(compat_b64decode(
2828
compat_urllib_parse_unquote(self._match_id(url))),
29-
-zlib.MAX_WBITS), None)['video']['items'][0]
29+
-zlib.MAX_WBITS).decode('utf-8'), None)['video']['items'][0]
3030
return self._extract_video_info(item['mpxRefId'], 'cbsnews')
3131

3232

0 commit comments

Comments
 (0)