From: Alex Van't Hof Date: Wed, 24 Jul 2013 04:48:11 +0000 (-0400) Subject: [traileraddict] Allow all types of trailer URLs X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=b9a1252c9601db3e208eb76ab4c3d60f0fc1f7f2;p=youtube-dl.git [traileraddict] Allow all types of trailer URLs Valid url regex for traileraddict.com is too strict. Need to allow, e.g. theatrical-trailer, teaser-trailer, feature-read-band-trailer, etc. --- diff --git a/youtube_dl/extractor/traileraddict.py b/youtube_dl/extractor/traileraddict.py index 324bb6231..6f2fc2394 100644 --- a/youtube_dl/extractor/traileraddict.py +++ b/youtube_dl/extractor/traileraddict.py @@ -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',