1
0
mirror of https://github.com/l1ving/youtube-dl synced 2024-12-21 23:03:10 +08:00

screencast.com: fallback on page title

When determining the title of the page, use the <title> tag of the page
This commit is contained in:
Martin Trigaux 2016-03-29 14:34:58 +02:00 committed by Sergey M․
parent 81de73e5b4
commit 791d6aaecc

View File

@ -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)