Browse Source

[cbsnews] Fix extraction for python <3.6 (closes #23359)

Sergey M․ 4 years ago
parent
commit
9f6c03a006
1 changed files with 1 additions and 1 deletions
  1. 1 1
      youtube_dl/extractor/cbsnews.py

+ 1 - 1
youtube_dl/extractor/cbsnews.py

@@ -26,7 +26,7 @@ class CBSNewsEmbedIE(CBSIE):
     def _real_extract(self, url):
     def _real_extract(self, url):
         item = self._parse_json(zlib.decompress(compat_b64decode(
         item = self._parse_json(zlib.decompress(compat_b64decode(
             compat_urllib_parse_unquote(self._match_id(url))),
             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')
         return self._extract_video_info(item['mpxRefId'], 'cbsnews')