From 7db225a581a50de58581997cc0ccd8f9b1064dd2 Mon Sep 17 00:00:00 2001 From: Mort Yao Date: Sun, 19 Jul 2020 02:17:22 +0200 Subject: [PATCH] [youtube] unescape html5player URLs for some videos --- src/you_get/extractors/youtube.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/you_get/extractors/youtube.py b/src/you_get/extractors/youtube.py index f8630b8c..4f3a947e 100644 --- a/src/you_get/extractors/youtube.py +++ b/src/you_get/extractors/youtube.py @@ -439,6 +439,7 @@ class YouTube(VideoExtractor): except: # VEVO if not self.html5player: return + self.html5player = self.html5player.replace('\/', '/') # unescape URL (for age-restricted videos) self.js = get_content(self.html5player) try: