diff options
author | Martin Trigaux <me@mart-e.be> | 2016-03-29 14:34:58 +0200 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-04-01 23:00:52 +0600 |
commit | 791d6aaeccd2efae2c4c5fa1e72010be85eb89b8 (patch) | |
tree | 23a767cc0aa705f05077e433774cde7d13a42991 /youtube_dl | |
parent | 81de73e5b43e5009a14f569aed92fe73e61d4f03 (diff) |
screencast.com: fallback on page title
When determining the title of the page, use the <title> tag of the page
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/screencast.py | 3 |
1 files changed, 2 insertions, 1 deletions
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>([^<]*)</title>'], webpage, 'title') thumbnail = self._og_search_thumbnail(webpage) description = self._og_search_description(webpage, default=None) |