aboutsummaryrefslogtreecommitdiffhomepage
path: root/youtube_dl/extractor/appletrailers.py
diff options
context:
space:
mode:
authorSergey M․ <[email protected]>2017-10-09 23:50:53 +0700
committerSergey M․ <[email protected]>2017-10-09 23:50:53 +0700
commit197224b7a4e37a6581bf1a0da18d0f67ea61a476 (patch)
treec2cd8cac66667b65610ca7dc279d0fe98c87ae50 /youtube_dl/extractor/appletrailers.py
parent89923316210f8e17bb1a085278940e1c56fcff48 (diff)
downloadyoutube-dl-197224b7a4e37a6581bf1a0da18d0f67ea61a476.tar.gz
youtube-dl-197224b7a4e37a6581bf1a0da18d0f67ea61a476.zip
Fix some regexes
Diffstat (limited to 'youtube_dl/extractor/appletrailers.py')
-rw-r--r--youtube_dl/extractor/appletrailers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/appletrailers.py b/youtube_dl/extractor/appletrailers.py
index b45b431e1..a9ef733e0 100644
--- a/youtube_dl/extractor/appletrailers.py
+++ b/youtube_dl/extractor/appletrailers.py
@@ -117,7 +117,7 @@ class AppleTrailersIE(InfoExtractor):
continue
formats.append({
'format_id': '%s-%s' % (version, size),
- 'url': re.sub(r'_(\d+p.mov)', r'_h\1', src),
+ 'url': re.sub(r'_(\d+p\.mov)', r'_h\1', src),
'width': int_or_none(size_data.get('width')),
'height': int_or_none(size_data.get('height')),
'language': version[:2],
@@ -179,7 +179,7 @@ class AppleTrailersIE(InfoExtractor):
formats = []
for format in settings['metadata']['sizes']:
# The src is a file pointing to the real video file
- format_url = re.sub(r'_(\d*p.mov)', r'_h\1', format['src'])
+ format_url = re.sub(r'_(\d*p\.mov)', r'_h\1', format['src'])
formats.append({
'url': format_url,
'format': format['type'],