From: Martin Trigaux Date: Tue, 29 Mar 2016 12:34:58 +0000 (+0200) Subject: screencast.com: fallback on page title X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=791d6aaeccd2efae2c4c5fa1e72010be85eb89b8;p=youtube-dl screencast.com: fallback on page title When determining the title of the page, use the tag of the page --- diff --git a/youtube_dl/extractor/screencast.py b/youtube_dl/extractor/screencast.py index c69451151..32f31fdd7 100644 --- a/youtube_dl/extractor/screencast.py +++ b/youtube_dl/extractor/screencast.py @@ -97,7 +97,8 @@ class ScreencastIE(InfoExtractor): if title is None: title = self._html_search_regex( [r'<b>Title:</b> ([^<]*)</div>', - r'class="tabSeperator">></span><span class="tabText">(.*?)<'], + r'class="tabSeperator">></span><span class="tabText">(.*?)<', + r'<title>([^<]*)'], webpage, 'title') thumbnail = self._og_search_thumbnail(webpage) description = self._og_search_description(webpage, default=None)