浏览代码

[dreisat] Make ‘index.php’ optional in the url (fixes #2080)

Jaime Marquínez Ferrándiz 11 年之前
父节点
当前提交
71cd2a571e
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/dreisat.py

+ 1 - 1
youtube_dl/extractor/dreisat.py

@@ -10,7 +10,7 @@ from ..utils import (
 
 
 class DreiSatIE(InfoExtractor):
 class DreiSatIE(InfoExtractor):
     IE_NAME = '3sat'
     IE_NAME = '3sat'
-    _VALID_URL = r'(?:http://)?(?:www\.)?3sat\.de/mediathek/index\.php\?(?:(?:mode|display)=[^&]+&)*obj=(?P<id>[0-9]+)$'
+    _VALID_URL = r'(?:http://)?(?:www\.)?3sat\.de/mediathek/(?:index\.php)?\?(?:(?:mode|display)=[^&]+&)*obj=(?P<id>[0-9]+)$'
     _TEST = {
     _TEST = {
         u"url": u"http://www.3sat.de/mediathek/index.php?obj=36983",
         u"url": u"http://www.3sat.de/mediathek/index.php?obj=36983",
         u'file': u'36983.mp4',
         u'file': u'36983.mp4',