1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

[youtube] Support expanding alternative format of links in description (Closes #8164)

This commit is contained in:
Sergey M․ 2016-01-08 00:52:55 +06:00
parent 2e02ecbccc
commit 23f13e9754

View file

@ -1235,10 +1235,10 @@ class YoutubeIE(YoutubeBaseInfoExtractor):
video_description = re.sub(r'''(?x) video_description = re.sub(r'''(?x)
<a\s+ <a\s+
(?:[a-zA-Z-]+="[^"]+"\s+)*? (?:[a-zA-Z-]+="[^"]+"\s+)*?
title="([^"]+)"\s+ (?:title|href)="([^"]+)"\s+
(?:[a-zA-Z-]+="[^"]+"\s+)*? (?:[a-zA-Z-]+="[^"]+"\s+)*?
class="yt-uix-redirect-link"\s*> class="(?:yt-uix-redirect-link|yt-uix-sessionlink[^"]*)".*?>
[^<]+ [^<]+\.{3}\s*
</a> </a>
''', r'\1', video_description) ''', r'\1', video_description)
video_description = clean_html(video_description) video_description = clean_html(video_description)