Browse Source

[screencast] Improve title regexes (Closes #9025)

totalwebcasting
Sergey M․ 9 years ago
parent
commit
75d572e9fb
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      youtube_dl/extractor/screencast.py

+ 3
- 3
youtube_dl/extractor/screencast.py View File

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


Loading…
Cancel
Save