From 8d58ebe4dcd5a6c5b16f8470da41687c4f5cf406 Mon Sep 17 00:00:00 2001 From: Thomas Christlieb Date: Fri, 3 Feb 2017 12:18:47 +0100 Subject: [PATCH] Slight improvement in Regex to check for playlist or page --- youtube_dl/extractor/iqiyi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/iqiyi.py b/youtube_dl/extractor/iqiyi.py index 69fec6451..5d583e08d 100644 --- a/youtube_dl/extractor/iqiyi.py +++ b/youtube_dl/extractor/iqiyi.py @@ -302,7 +302,7 @@ class IqiyiIE(InfoExtractor): PAGE_SIZE = 50 links = re.findall( - r']+?class="site-piclist_pic_link"[^>]+?>', + r']+?href="(http://www\.iqiyi\.com/.+\.html)"[^>]+?class="site-piclist_pic_link"[^>]+?>', webpage) if not links: return