mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-01 23:12:40 +00:00
[generic] Prevent <video> search from skipping over empty sources (#3546)
This commit is contained in:
parent
1cb6dcdbbe
commit
aff216edf4
1 changed files with 1 additions and 1 deletions
|
@ -837,7 +837,7 @@ def check_video(vurl):
|
|||
re.findall(r'<meta.*?property="og:video".*?content="(.*?)"', webpage)))
|
||||
if not found:
|
||||
# HTML5 video
|
||||
found = re.findall(r'(?s)<video[^<]*(?:>.*?<source.*?)? src="([^"]+)"', webpage)
|
||||
found = re.findall(r'(?s)<video[^<]*(?:>.*?<source[^>]+)? src="([^"]+)"', webpage)
|
||||
if not found:
|
||||
found = re.search(
|
||||
r'(?i)<meta\s+(?=(?:[a-z-]+="[^"]+"\s+)*http-equiv="refresh")'
|
||||
|
|
Loading…
Reference in a new issue