From fe674c029fb5f423a5ad5417e07f7bf4e4862723 Mon Sep 17 00:00:00 2001 From: Erik Date: Sat, 24 Oct 2015 22:20:37 +0200 Subject: [PATCH] [youporn] Fix: Add encrypted link to links array only if not already in it --- youtube_dl/extractor/youporn.py | 1 + 1 file changed, 1 insertion(+) diff --git a/youtube_dl/extractor/youporn.py b/youtube_dl/extractor/youporn.py index 420435196..f288f1eeb 100644 --- a/youtube_dl/extractor/youporn.py +++ b/youtube_dl/extractor/youporn.py @@ -65,6 +65,7 @@ class YouPornIE(InfoExtractor): encrypted_links = re.findall(r'page_params.encryptedQuality[0-9]{3,4}URL\s=\s\'([a-zA-Z0-9+/]+={0,2})\';', webpage) for encrypted_link in encrypted_links: link = aes_decrypt_text(encrypted_link, video_title, 32).decode('utf-8') + # it's unclear if encryted links still differ from normal ones, so only include in links array if it's unique if link not in links: links.append(link)