]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[iqiyi] Make _VALID_URL more accurate
authorYen Chi Hsuan <yan12125@gmail.com>
Sat, 6 Jun 2015 18:13:22 +0000 (02:13 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Sat, 6 Jun 2015 18:13:22 +0000 (02:13 +0800)
v_* urls are individual videos, while a_* urls are playlists, which are
not supported yet.

youtube_dl/extractor/iqiyi.py

index d73687d881e6b31922c8e62989d346369460b1f1..f0d4233313e5ad1843c85915051b8ecfbfe04384 100644 (file)
@@ -17,7 +17,7 @@ from ..utils import ExtractorError
 class IqiyiIE(InfoExtractor):
     IE_NAME = 'iqiyi'
 
-    _VALID_URL = r'http://(?:www\.)iqiyi.com/.+?\.html'
+    _VALID_URL = r'http://(?:www\.)iqiyi.com/v_.+?\.html'
 
     _TESTS = [{
         'url': 'http://www.iqiyi.com/v_19rrojlavg.html',