mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-18 15:11:45 +00:00
[youtube] Support expanding alternative format of links in description (Closes #8164)
This commit is contained in:
parent
2e02ecbccc
commit
23f13e9754
@ -1235,10 +1235,10 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
|
||||
video_description = re.sub(r'''(?x)
|
||||
<a\s+
|
||||
(?:[a-zA-Z-]+="[^"]+"\s+)*?
|
||||
title="([^"]+)"\s+
|
||||
(?:title|href)="([^"]+)"\s+
|
||||
(?:[a-zA-Z-]+="[^"]+"\s+)*?
|
||||
class="yt-uix-redirect-link"\s*>
|
||||
[^<]+
|
||||
class="(?:yt-uix-redirect-link|yt-uix-sessionlink[^"]*)".*?>
|
||||
[^<]+\.{3}\s*
|
||||
</a>
|
||||
''', r'\1', video_description)
|
||||
video_description = clean_html(video_description)
|
||||
|
Loading…
Reference in New Issue
Block a user