mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-28 17:41:01 +01:00
fix some titles in TED
This commit is contained in:
parent
3a468f2d8b
commit
59d4c2fe1b
@ -3975,7 +3975,7 @@ def _real_extract(self, url):
|
|||||||
videoName=m.group('videoName')
|
videoName=m.group('videoName')
|
||||||
webpage=self._download_webpage(url, 0, 'Downloading \"%s\" page' % videoName)
|
webpage=self._download_webpage(url, 0, 'Downloading \"%s\" page' % videoName)
|
||||||
#If the url includes the language we get the title translated
|
#If the url includes the language we get the title translated
|
||||||
title_RE=r'<h1><span id="altHeadline" >(?P<title>[\s\w:/\.\?=\+-]*)</span></h1>'
|
title_RE=r'<h1><span id="altHeadline" >(?P<title>[\s\w:/\.\?=\+-\\\']*)</span></h1>'
|
||||||
title=re.search(title_RE, webpage).group('title')
|
title=re.search(title_RE, webpage).group('title')
|
||||||
info_RE=r'''<script\ type="text/javascript">var\ talkDetails\ =(.*?)
|
info_RE=r'''<script\ type="text/javascript">var\ talkDetails\ =(.*?)
|
||||||
"id":(?P<videoID>[\d]+).*?
|
"id":(?P<videoID>[\d]+).*?
|
||||||
|
Loading…
Reference in New Issue
Block a user