Browse Source

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

totalwebcasting
Sergey M․ 9 years ago
parent
commit
23f13e9754
1 changed files with 3 additions and 3 deletions
  1. +3
    -3
      youtube_dl/extractor/youtube.py

+ 3
- 3
youtube_dl/extractor/youtube.py View File

@ -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…
Cancel
Save