commit: 6c6f1408f264f30fc4e2970e958cb7f9dc470d57
parent b7a7319c388e3a33851d87b589586abb6796a0e5
Author: Sergey M․ <dstftw@gmail.com>
Date: Thu, 1 Jan 2015 00:37:14 +0600
[extractor/common] Allow multiline content tags
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/youtube_dl/extractor/common.py b/youtube_dl/extractor/common.py
@@ -589,7 +589,7 @@ class InfoExtractor(object):
if display_name is None:
display_name = name
return self._html_search_regex(
- r'''(?ix)<meta
+ r'''(?isx)<meta
(?=[^>]+(?:itemprop|name|property)=(["\']?)%s\1)
[^>]+content=(["\'])(?P<content>.*?)\1''' % re.escape(name),
html, display_name, fatal=fatal, group='content', **kwargs)