[rtve.es:alacarta] Fix extraction of some new URLs
[youtube-dl] / youtube_dl / extractor / rtve.py
index d9edf9da2f71cf6fbcf3c8bfd310c4818eced62c..fa60ffd5e3fbadc013513c3e22d421f2c2c7a0bb 100644 (file)
@@ -31,6 +31,9 @@ def _decrypt_url(png):
     hash_index = data.index('#')
     alphabet_data = data[:hash_index]
     url_data = data[hash_index + 1:]
+    if url_data[0] == 'H' and url_data[3] == '%':
+        # remove useless HQ%% at the start
+        url_data = url_data[4:]
 
     alphabet = []
     e = 0