[iqiyi]fix valid url
authorforDream <gam2046@users.noreply.github.com>
Tue, 22 Dec 2015 01:28:12 +0000 (09:28 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Sun, 27 Dec 2015 16:16:34 +0000 (00:16 +0800)
eg:
http://yule.iqiyi.com/zbj.html

youtube_dl/extractor/iqiyi.py

index f0e2e5104883a22e5cabea7bed8aff0270933c3f..38348e0e75dee5dd5d9d971e4f32bdca2b4d9b51 100644 (file)
@@ -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',