From 9dfdfe372cdeb1ea65b0f6fb15af33401d8a01da Mon Sep 17 00:00:00 2001 From: gam2046 Date: Fri, 18 Dec 2015 14:18:56 +0800 Subject: [PATCH 1/2] Update iqiyi.py Fix part of the address can not be resolved. eg:http://www.iqiyi.com/w_19rt6o8t9p.html --- 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 f96e12e69..32a24ed2e 100644 --- a/youtube_dl/extractor/iqiyi.py +++ b/youtube_dl/extractor/iqiyi.py @@ -16,7 +16,7 @@ class IqiyiIE(InfoExtractor): IE_NAME = 'iqiyi' IE_DESC = '爱奇艺' - _VALID_URL = r'http://(?:www\.)iqiyi.com/v_.+?\.html' + _VALID_URL = r'http://(?:www\.)iqiyi.com/._.+?\.html' _TESTS = [{ 'url': 'http://www.iqiyi.com/v_19rrojlavg.html', From 0d13e83e2f30dbdff5af05021c335f66588076ff Mon Sep 17 00:00:00 2001 From: forDream Date: Tue, 22 Dec 2015 09:28:12 +0800 Subject: [PATCH 2/2] [iqiyi]fix valid url eg: http://yule.iqiyi.com/zbj.html --- 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 32a24ed2e..4d7f5ed24 100644 --- a/youtube_dl/extractor/iqiyi.py +++ b/youtube_dl/extractor/iqiyi.py @@ -16,7 +16,7 @@ class IqiyiIE(InfoExtractor): IE_NAME = 'iqiyi' IE_DESC = '爱奇艺' - _VALID_URL = r'http://(?:www\.)iqiyi.com/._.+?\.html' + _VALID_URL = r'http://(?:[^.]+\.)?iqiyi\.com/.+\.html' _TESTS = [{ 'url': 'http://www.iqiyi.com/v_19rrojlavg.html',