0
0
Fork 0

[generic] Add support for single quotes in HTML5 videos (Fixes #4265)

main
Philipp Hagemeister 2014-11-21 22:01:25 +01:00
parent ec06f0f610
commit 9b32eca3ce
1 changed files with 1 additions and 1 deletions

View File

@ -979,7 +979,7 @@ class GenericIE(InfoExtractor):
found = filter_video(re.findall(r'<meta.*?property="og:video".*?content="(.*?)"', webpage))
if not found:
# HTML5 video
found = re.findall(r'(?s)<video[^<]*(?:>.*?<source[^>]*)?\s+src="([^"]+)"', webpage)
found = re.findall(r'(?s)<video[^<]*(?:>.*?<source[^>]*)?\s+src=["\'](.*?)["\']', webpage)
if not found:
found = re.search(
r'(?i)<meta\s+(?=(?:[a-z-]+="[^"]+"\s+)*http-equiv="refresh")'