mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
TEDIE: fix the title extraction
This commit is contained in:
parent
c364f15ff1
commit
177ed935a9
1 changed files with 1 additions and 1 deletions
|
@ -67,7 +67,7 @@ def _talk_info(self, url, video_id=0):
|
||||||
webpage = self._download_webpage(url, video_id, 'Downloading \"%s\" page' % video_name)
|
webpage = self._download_webpage(url, video_id, 'Downloading \"%s\" page' % video_name)
|
||||||
self.report_extraction(video_name)
|
self.report_extraction(video_name)
|
||||||
# If the url includes the language we get the title translated
|
# If the url includes the language we get the title translated
|
||||||
title = self._html_search_regex(r'<span id="altHeadline" >(?P<title>.*)</span>',
|
title = self._html_search_regex(r'<span .*?id="altHeadline".+?>(?P<title>.*)</span>',
|
||||||
webpage, 'title')
|
webpage, 'title')
|
||||||
json_data = self._search_regex(r'<script.*?>var talkDetails = ({.*?})</script>',
|
json_data = self._search_regex(r'<script.*?>var talkDetails = ({.*?})</script>',
|
||||||
webpage, 'json data')
|
webpage, 'json data')
|
||||||
|
|
Loading…
Reference in a new issue