aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/youtube.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-09-21 15:34:29 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2013-09-21 15:34:29 +0200
commit2f2ffea9cad7d30165a0171bf6e662bef2182ab4 (patch)
treee832704edbf4c1e2b321dfafaaedabc730d1bd24 /youtube_dl/extractor/youtube.py
parentba552f542f674d35de21d48978f211b8db3f0ff8 (diff)
Clarify a couple of calls
Diffstat (limited to 'youtube_dl/extractor/youtube.py')
-rw-r--r--youtube_dl/extractor/youtube.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index 09bd423f5..5c0ea2e43 100644
--- 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
- _ = read_bytes(4)
+ _ = read_bytes(2 + 2)
# 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')
- 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.