mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-29 16:54:08 +00:00
[liveleak] Improve regex for restoring original video URL
This commit is contained in:
parent
7d0c934a3e
commit
00ac23e6e0
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ def _real_extract(self, url):
|
|||
'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…
Reference in a new issue