aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-06-15 02:51:21 +0600
committerSergey M․ <dstftw@gmail.com>2015-06-15 02:51:21 +0600
commit00ac23e6e06bf6de59d5d5b3f42ff64ce039fee2 (patch)
tree39f449a59d8f557f268fe9d26195beb0ad19e548
parent7d0c934a3ef1b0c6d3dff91aaa685c1cd71e5580 (diff)
downloadyoutube-dl-00ac23e6e06bf6de59d5d5b3f42ff64ce039fee2.tar.xz
[liveleak] Improve regex for restoring original video URL
-rw-r--r--youtube_dl/extractor/liveleak.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/liveleak.py b/youtube_dl/extractor/liveleak.py
index c658cc92b..e82f21ea7 100644
--- a/youtube_dl/extractor/liveleak.py
+++ b/youtube_dl/extractor/liveleak.py
@@ -95,7 +95,7 @@ class LiveLeakIE(InfoExtractor):
'url': s['file'],
} for i, s in enumerate(sources)]
for i, s in enumerate(sources):
- orig_url = re.sub(r'.h264_.+\.mp4', '', s['file'])
+ orig_url = re.sub(r'\.h264_.+?\.mp4', '', s['file'])
if s['file'] != orig_url:
formats.append({
'format_id': 'original-%s' % i,