mirror of
https://github.com/l1ving/youtube-dl
synced 2025-02-10 06:43:20 +08:00
Fix broken TEDIE
This commit is contained in:
parent
f10b2a9c14
commit
33d8efdbcb
@ -4051,7 +4051,7 @@ class TEDIE(InfoExtractor):
|
|||||||
videoName=m.group('name')
|
videoName=m.group('name')
|
||||||
webpage=self._download_webpage(url, video_id, 'Downloading \"%s\" page' % videoName)
|
webpage=self._download_webpage(url, video_id, '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>.*)</span></h1>'
|
title_RE=r'<h1( lang="(.*?)")?>(\s*?)<span id="altHeadline" >(?P<title>.*?)</span>(\s*?)</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