projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ba552f5
)
Clarify a couple of calls
author
Philipp Hagemeister
<phihag@phihag.de>
Sat, 21 Sep 2013 13:34:29 +0000
(15:34 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Sat, 21 Sep 2013 13:34:29 +0000
(15:34 +0200)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index 09bd423f5a7b077eb7bb107d529d5ad4f410e674..5c0ea2e43931c7cacf961a808f8b5b62b9d25889 100644
(file)
--- a/
youtube_dl/extractor/youtube.py
+++ b/
youtube_dl/extractor/youtube.py
@@
-641,7
+641,7
@@
class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
return res
# minor_version + major_version
return res
# minor_version + major_version
- _ = read_bytes(
4
)
+ _ = read_bytes(
2 + 2
)
# Constant pool
int_count = u30()
# Constant pool
int_count = u30()
@@
-994,9
+994,10
@@
class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
self._downloader.report_warning(
u'Warning: Falling back to static signature algorithm')
self._downloader.report_warning(
u'Warning: Falling back to static signature algorithm')
- return self._static_decrypt_signature(s)
+ return self._static_decrypt_signature(
+ s, video_id, player_url, age_gate)
- def _static_decrypt_signature(self, s):
+ def _static_decrypt_signature(self, s
, video_id, player_url, age_gate
):
if age_gate:
# The videos with age protection use another player, so the
# algorithms can be different.
if age_gate:
# The videos with age protection use another player, so the
# algorithms can be different.