From: Sergey M․ Date: Mon, 18 Jan 2016 17:17:45 +0000 (+0600) Subject: [youtube] Fix URL expansion in video description X-Git-Tag: 2021.01.07~6677 X-Git-Url: https://jfr.im/git/yt-dlp.git/commitdiff_plain/096b5339823fc65beeca6cff96867ed03e6234db [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 @@ def add_dash_mpd(video_info): (?:[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)