]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[traileraddict] Allow all types of trailer URLs
authorAlex Van't Hof <alexvh@cs.columbia.edu>
Wed, 24 Jul 2013 04:48:11 +0000 (00:48 -0400)
committerAlex Van't Hof <alexvh@cs.columbia.edu>
Wed, 24 Jul 2013 04:48:11 +0000 (00:48 -0400)
Valid url regex for traileraddict.com is too strict. Need to allow,
e.g. theatrical-trailer, teaser-trailer, feature-read-band-trailer, etc.

youtube_dl/extractor/traileraddict.py

index 324bb6231e635cc90c7f9161e137eec5fb491a33..6f2fc2394f6d154b953163553fae9c725b998fce 100644 (file)
@@ -4,7 +4,7 @@ from .common import InfoExtractor
 
 
 class TrailerAddictIE(InfoExtractor):
-    _VALID_URL = r'(?:http://)?(?:www\.)?traileraddict\.com/trailer/([^/]+)/(?:trailer|feature-trailer)'
+    _VALID_URL = r'(?:http://)?(?:www\.)?traileraddict\.com/trailer/([^/]+)/(?:[^/]*trailer[^/]*)'
     _TEST = {
         u'url': u'http://www.traileraddict.com/trailer/prince-avalanche/trailer',
         u'file': u'76184.mp4',