[extractor/common] Allow multiline content tags
authorSergey M․ <dstftw@gmail.com>
Wed, 31 Dec 2014 18:37:14 +0000 (00:37 +0600)
committerSergey M․ <dstftw@gmail.com>
Wed, 31 Dec 2014 18:37:14 +0000 (00:37 +0600)
youtube_dl/extractor/common.py

index 4b950e485241e41d96531a12e7429351fc2e8e2e..6e264f6870811b31b1582cfd022d51799a18968a 100644 (file)
@@ -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)