projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c35f9e7
)
[youtube] Remove _decrypt_signature_age_gate
author
Philipp Hagemeister
<phihag@phihag.de>
Sun, 22 Sep 2013 09:17:21 +0000
(11:17 +0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Sun, 22 Sep 2013 09:17:21 +0000
(11:17 +0200)
youtube_dl/extractor/youtube.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/youtube.py
b/youtube_dl/extractor/youtube.py
index 2dd2db67300565a16da1526656a7e48eb96f0957..56ad33fdc11465d3e2e3fed025966086aec9a927 100644
(file)
--- a/
youtube_dl/extractor/youtube.py
+++ b/
youtube_dl/extractor/youtube.py
@@
-1109,15
+1109,6
@@
class YoutubeIE(YoutubeBaseInfoExtractor, SubtitlesInfoExtractor):
else:
raise ExtractorError(u'Unable to decrypt signature, key length %d not supported; retrying might work' % (len(s)))
else:
raise ExtractorError(u'Unable to decrypt signature, key length %d not supported; retrying might work' % (len(s)))
- def _decrypt_signature_age_gate(self, s):
- # The videos with age protection use another player, so the algorithms
- # can be different.
- if len(s) == 86:
- return s[2:63] + s[82] + s[64:82] + s[63]
- else:
- # Fallback to the other algortihms
- return self._decrypt_signature(s)
-
def _get_available_subtitles(self, video_id):
try:
sub_list = self._download_webpage(
def _get_available_subtitles(self, video_id):
try:
sub_list = self._download_webpage(