]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[screencast] Improve title regexes (Closes #9025)
authorSergey M․ <dstftw@gmail.com>
Fri, 1 Apr 2016 17:01:55 +0000 (23:01 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 1 Apr 2016 17:01:55 +0000 (23:01 +0600)
youtube_dl/extractor/screencast.py

index 32f31fdd70f98433a55cd2f887ed78b0ce84547a..3566317008712d8e378eec36c437cbc39fdc1cdc 100644 (file)
@@ -96,9 +96,9 @@ class ScreencastIE(InfoExtractor):
         title = self._og_search_title(webpage, default=None)
         if title is None:
             title = self._html_search_regex(
-                [r'<b>Title:</b> ([^<]*)</div>',
-                 r'class="tabSeperator">></span><span class="tabText">(.*?)<',
-                 r'<title>([^<]*)</title>'],
+                [r'<b>Title:</b> ([^<]+)</div>',
+                 r'class="tabSeperator">></span><span class="tabText">(.+?)<',
+                 r'<title>([^<]+)</title>'],
                 webpage, 'title')
         thumbnail = self._og_search_thumbnail(webpage)
         description = self._og_search_description(webpage, default=None)