aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/vimeo.py
diff options
context:
space:
mode:
authortsia <github@tsia.de>2020-03-02 19:27:40 +0100
committerGitHub <noreply@github.com>2020-03-03 01:27:40 +0700
commit1c45ff5572e0844b2ad26c2c0d477edc81e6b5b0 (patch)
treec73b1666b0296c9c22c5389196bd6b197607a750 /youtube_dl/extractor/vimeo.py
parent669625a32cce386d0c19b5a0eea03707570a60d5 (diff)
[vimeo] Fix subtitles URLs (#24209)
Diffstat (limited to 'youtube_dl/extractor/vimeo.py')
-rw-r--r--youtube_dl/extractor/vimeo.py3
1 files changed, 2 insertions, 1 deletions
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 = []