aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/rtve.py
diff options
context:
space:
mode:
Diffstat (limited to 'youtube_dl/extractor/rtve.py')
-rw-r--r--youtube_dl/extractor/rtve.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/extractor/rtve.py b/youtube_dl/extractor/rtve.py
index d9edf9da2..fa60ffd5e 100644
--- a/youtube_dl/extractor/rtve.py
+++ b/youtube_dl/extractor/rtve.py
@@ -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