[dreisat] Make ‘index.php’ optional in the url (fixes #2080)
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Fri, 3 Jan 2014 11:02:08 +0000 (12:02 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Fri, 3 Jan 2014 11:02:08 +0000 (12:02 +0100)
youtube_dl/extractor/dreisat.py

index b0e4300bd7f15f359580c7ee0e27da6a06c67404..0b11d1f10e18e4358b35f76d0a0e0816b00eaa4c 100644 (file)
@@ -10,7 +10,7 @@ from ..utils import (
 
 class DreiSatIE(InfoExtractor):
     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 = {
         u"url": u"http://www.3sat.de/mediathek/index.php?obj=36983",
         u'file': u'36983.mp4',