]> git.bitcoin.ninja Git - youtube-dl/commitdiff
GenericIE: match titles that spread across multiple lines (related #904)
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Mon, 1 Jul 2013 18:50:50 +0000 (20:50 +0200)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Mon, 1 Jul 2013 18:50:50 +0000 (20:50 +0200)
youtube_dl/extractor/generic.py

index 6fb9e6f322ca592e27d33302e79fbf3b30d684d7..20bc533300aa38d5d8b2d6a13eefee44fe439f72 100644 (file)
@@ -143,7 +143,7 @@ class GenericIE(InfoExtractor):
         #   Video Title - Tagline | Site Name
         # and so on and so forth; it's just not practical
         video_title = self._html_search_regex(r'<title>(.*)</title>',
-            webpage, u'video title', default=u'video')
+            webpage, u'video title', default=u'video', flags=re.DOTALL)
 
         # video uploader is domain name
         video_uploader = self._search_regex(r'(?:https?://)?([^/]*)/.*',