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

This commit is contained in:
=?UTF-8?q?Sergey=20M=E2=80=A4?= 2021-04-18 16:41:09 +02:00 committed by Lauren Liberda
parent 5f6bcc20f5
commit 4c46e374bc

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')