Browse Source

[liveleak] Improve regex for restoring original video URL

totalwebcasting
Sergey M․ 10 years ago
parent
commit
00ac23e6e0
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/liveleak.py

+ 1
- 1
youtube_dl/extractor/liveleak.py View File

@ -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,


Loading…
Cancel
Save