projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
266b6ef
)
[extractor/videa] fix extraction in Py2
author
kikuyan
<kikuyan@users.noreply.github.com>
Thu, 23 Dec 2021 02:40:45 +0000
(11:40 +0900)
committer
dirkf
<fieldhouse@gmx.net>
Fri, 11 Feb 2022 12:43:26 +0000
(12:43 +0000)
Fixes #30416
youtube_dl/extractor/videa.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/videa.py
b/youtube_dl/extractor/videa.py
index ab2c15cdec154bf7d760c588d114eed106221b60..bdb95891d2660b12a85a223e3a1b223d385d34ee 100644
(file)
--- a/
youtube_dl/extractor/videa.py
+++ b/
youtube_dl/extractor/videa.py
@@
-91,7
+91,7
@@
class VideaIE(InfoExtractor):
k = S[(S[i] + S[j]) % 256]
res += compat_struct_pack('B', k ^ compat_ord(cipher_text[m]))
- return res.decode()
+ return res.decode(
'utf-8'
)
def _real_extract(self, url):
video_id = self._match_id(url)
@@
-121,7
+121,7
@@
class VideaIE(InfoExtractor):
compat_b64decode(b64_info), key), video_id)
video = xpath_element(info, './video', 'video')
- if
not video
:
+ if
video is None
:
raise ExtractorError(xpath_element(
info, './error', fatal=True), expected=True)
sources = xpath_element(