summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-09-22 11:17:21 +0200
committerPhilipp Hagemeister <phihag@phihag.de>2013-09-22 11:17:21 +0200
commit13dc64ce741520ba54ba9fff0ab1a3ac4e5c43a4 (patch)
treebe8fef0625ec8a65ac8bd287c2ce5d6e52a6aaaf
parentc35f9e72ce842ecd476bee3767527da0e675dd1a (diff)
downloadyoutube-dl-13dc64ce741520ba54ba9fff0ab1a3ac4e5c43a4.tar.gz
youtube-dl-13dc64ce741520ba54ba9fff0ab1a3ac4e5c43a4.tar.xz
youtube-dl-13dc64ce741520ba54ba9fff0ab1a3ac4e5c43a4.zip
[youtube] Remove _decrypt_signature_age_gate
-rw-r--r--youtube_dl/extractor/youtube.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index 2dd2db673..56ad33fdc 100644
--- 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)))
 
-    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(