[appletrailers] Extend _VALID_URL (Closes #5027)
authorSergey M․ <dstftw@gmail.com>
Sun, 22 Feb 2015 13:53:32 +0000 (19:53 +0600)
committerSergey M․ <dstftw@gmail.com>
Sun, 22 Feb 2015 13:53:32 +0000 (19:53 +0600)
youtube_dl/extractor/appletrailers.py

index 43e82847ff8eb472bdac0a91c2138220f001b3b6..9c718ea661c5916eb6ac72a94815de20fcf62c23 100644 (file)
@@ -11,7 +11,7 @@ from ..utils import (
 
 
 class AppleTrailersIE(InfoExtractor):
-    _VALID_URL = r'https?://(?:www\.)?trailers\.apple\.com/trailers/(?P<company>[^/]+)/(?P<movie>[^/]+)'
+    _VALID_URL = r'https?://(?:www\.)?trailers\.apple\.com/(?:trailers|ca)/(?P<company>[^/]+)/(?P<movie>[^/]+)'
     _TEST = {
         "url": "http://trailers.apple.com/trailers/wb/manofsteel/",
         'info_dict': {