[youtube] unescape html5player URLs for some videos

This commit is contained in:
Mort Yao 2020-07-19 02:17:22 +02:00
parent f1f2164e54
commit 7db225a581
No known key found for this signature in database
GPG Key ID: 07DA00CB78203251

View File

@ -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: