projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
596b266
)
[cbsnews] Fix extraction for python <3.6 (closes #23359)
author
Sergey M․
<dstftw@gmail.com>
Fri, 16 Apr 2021 22:05:31 +0000
(
05:05
+0700)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 16 Apr 2021 22:05:31 +0000
(
05:05
+0700)
youtube_dl/extractor/cbsnews.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/cbsnews.py
b/youtube_dl/extractor/cbsnews.py
index 345debcf0c1c48363092d24fcc5809d76dfbba5a..1285ed65e5bbea10d9b57cad861767543fa8fee4 100644
(file)
--- a/
youtube_dl/extractor/cbsnews.py
+++ b/
youtube_dl/extractor/cbsnews.py
@@
-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')