Skip to content

A feature-rich command-line audio/video downloader

[screencast] Improve title regexes (Closes #9025)

Sergey M․75d572e9fb8d
diff --git a/youtube_dl/extractor/screencast.py b/youtube_dl/extractor/screencast.py
index 32f31fdd70..3566317008 100644
--- a/youtube_dl/extractor/screencast.py
+++ b/youtube_dl/extractor/screencast.py
@@ -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)