From: Sergey M․ Date: Mon, 18 Jan 2016 17:17:45 +0000 (+0600) Subject: [youtube] Fix URL expansion in video description X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=096b5339823fc65beeca6cff96867ed03e6234db;p=youtube-dl [youtube] Fix URL expansion in video description Fixes test_Youtube_18 --- diff --git a/youtube_dl/extractor/youtube.py b/youtube_dl/extractor/youtube.py index e4f227f19..50c1363cd 100644 --- a/youtube_dl/extractor/youtube.py +++ b/youtube_dl/extractor/youtube.py @@ -1237,7 +1237,7 @@ class YoutubeIE(YoutubeBaseInfoExtractor): (?:[a-zA-Z-]+="[^"]+"\s+)*? (?:title|href)="([^"]+)"\s+ (?:[a-zA-Z-]+="[^"]+"\s+)*? - class="(?:yt-uix-redirect-link|yt-uix-sessionlink[^"]*)".*?> + class="(?:yt-uix-redirect-link|yt-uix-sessionlink[^"]*)"[^>]*> [^<]+\.{3}\s* ''', r'\1', video_description)