1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2025-09-03 08:35:32 +00:00

[rtve.es:alacarta] Fix extraction of some new URLs

This commit is contained in:
Jaime Marquínez Ferrándiz
2018-01-02 21:12:39 +01:00
parent b5e531f31a
commit 9650c3e91d
2 changed files with 9 additions and 0 deletions

View 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