projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[svtplay] Rename to svt
[youtube-dl]
/
youtube_dl
/
extractor
/
appletrailers.py
diff --git
a/youtube_dl/extractor/appletrailers.py
b/youtube_dl/extractor/appletrailers.py
index 43e82847ff8eb472bdac0a91c2138220f001b3b6..576f03b5b71115771555e1d8d46f4a108eb9de93 100644
(file)
--- a/
youtube_dl/extractor/appletrailers.py
+++ b/
youtube_dl/extractor/appletrailers.py
@@
-11,8
+11,8
@@
from ..utils import (
class AppleTrailersIE(InfoExtractor):
class AppleTrailersIE(InfoExtractor):
- _VALID_URL = r'https?://(?:www\.)?trailers\.apple\.com/
trailers
/(?P<company>[^/]+)/(?P<movie>[^/]+)'
- _TEST
=
{
+ _VALID_URL = r'https?://(?:www\.)?trailers\.apple\.com/
(?:trailers|ca)
/(?P<company>[^/]+)/(?P<movie>[^/]+)'
+ _TEST
S = [
{
"url": "http://trailers.apple.com/trailers/wb/manofsteel/",
'info_dict': {
'id': 'manofsteel',
"url": "http://trailers.apple.com/trailers/wb/manofsteel/",
'info_dict': {
'id': 'manofsteel',
@@
-63,7
+63,10
@@
class AppleTrailersIE(InfoExtractor):
},
},
]
},
},
]
- }
+ }, {
+ 'url': 'http://trailers.apple.com/ca/metropole/autrui/',
+ 'only_matching': True,
+ }]
_JSON_RE = r'iTunes.playURL\((.*?)\);'
_JSON_RE = r'iTunes.playURL\((.*?)\);'