projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f311cfa
)
[appletrailers] Add test (#5027)
author
Sergey M․
<dstftw@gmail.com>
Sun, 22 Feb 2015 13:58:39 +0000
(19:58 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 22 Feb 2015 13:58:39 +0000
(19:58 +0600)
youtube_dl/extractor/appletrailers.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/appletrailers.py
b/youtube_dl/extractor/appletrailers.py
index 9c718ea661c5916eb6ac72a94815de20fcf62c23..576f03b5b71115771555e1d8d46f4a108eb9de93 100644
(file)
--- a/
youtube_dl/extractor/appletrailers.py
+++ b/
youtube_dl/extractor/appletrailers.py
@@
-12,7
+12,7
@@
from ..utils import (
class AppleTrailersIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?trailers\.apple\.com/(?:trailers|ca)/(?P<company>[^/]+)/(?P<movie>[^/]+)'
- _TEST
=
{
+ _TEST
S = [
{
"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\((.*?)\);'