Skip to content

A feature-rich command-line audio/video downloader

YoutubeIE: with age protected videos, add a missing "return" to return the signature decrypted with _decrypt_signature

Jaime Marquínez Ferrándizb072a9defd75
diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py
index ba8fdfdf2e..3932678a3c 100644
--- a/youtube_dl/extractor/youtube.py
+++ b/youtube_dl/extractor/youtube.py
@@ -310,7 +310,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
return s[2:63] + s[82] + s[64:82] + s[63]
else:
# Fallback to the other algortihms
- self._decrypt_signature(s)
+ return self._decrypt_signature(s)
def _get_available_subtitles(self, video_id):