Skip to content

A feature-rich command-line audio/video downloader

screencast.com: fallback on page title

Martin Trigaux791d6aaeccd2
diff --git a/youtube_dl/extractor/screencast.py b/youtube_dl/extractor/screencast.py
index c694511510..32f31fdd70 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)