]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[rtve.es:alacarta] Fix extraction of some new URLs
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@fastmail.net>
Tue, 2 Jan 2018 20:12:39 +0000 (21:12 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@fastmail.net>
Tue, 2 Jan 2018 20:12:39 +0000 (21:12 +0100)
ChangeLog
youtube_dl/extractor/rtve.py

index bfffb1f5f410861037389853167563a43b41df1b..3e6afca924a8a3cc78e3e432584aad918d89fccf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+version <unreleased>
+
+Extractors
+* [rtve.es:alacarta] Fix extraction of some new URLs
+
+
 version 2017.12.31
 
 Core
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