From: tsia Date: Mon, 2 Mar 2020 18:27:40 +0000 (+0100) Subject: [vimeo] Fix subtitles URLs (#24209) X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=1c45ff5572e0844b2ad26c2c0d477edc81e6b5b0;p=youtube-dl [vimeo] Fix subtitles URLs (#24209) --- diff --git a/youtube_dl/extractor/vimeo.py b/youtube_dl/extractor/vimeo.py index 1da4ced96..8cd611e1e 100644 --- a/youtube_dl/extractor/vimeo.py +++ b/youtube_dl/extractor/vimeo.py @@ -33,6 +33,7 @@ from ..utils import ( unified_timestamp, unsmuggle_url, urlencode_postdata, + urljoin, unescapeHTML, ) @@ -191,7 +192,7 @@ class VimeoBaseInfoExtractor(InfoExtractor): for tt in text_tracks: subtitles[tt['lang']] = [{ 'ext': 'vtt', - 'url': 'https://vimeo.com' + tt['url'], + 'url': urljoin('https://vimeo.com', tt['url']), }] thumbnails = []