From 9b32eca3ce6cda72449592c9ab26f73311a613f5 Mon Sep 17 00:00:00 2001 From: Philipp Hagemeister Date: Fri, 21 Nov 2014 22:01:25 +0100 Subject: [PATCH] [generic] Add support for single quotes in HTML5 videos (Fixes #4265) --- youtube_dl/extractor/generic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index af769ab61..c7a824c29 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -979,7 +979,7 @@ class GenericIE(InfoExtractor): found = filter_video(re.findall(r'.*?]*)?\s+src="([^"]+)"', webpage) + found = re.findall(r'(?s).*?]*)?\s+src=["\'](.*?)["\']', webpage) if not found: found = re.search( r'(?i)