commit: 1c45ff5572e0844b2ad26c2c0d477edc81e6b5b0
parent 669625a32cce386d0c19b5a0eea03707570a60d5
Author: tsia <github@tsia.de>
Date: Mon, 2 Mar 2020 19:27:40 +0100
[vimeo] Fix subtitles URLs (#24209)
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git 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 = []