[vimeo] Fix subtitles URLs (#24209)
authortsia <github@tsia.de>
Mon, 2 Mar 2020 18:27:40 +0000 (19:27 +0100)
committerGitHub <noreply@github.com>
Mon, 2 Mar 2020 18:27:40 +0000 (01:27 +0700)
youtube_dl/extractor/vimeo.py

index 1da4ced96c537cb9fbfcee9e2a757083b6ce633a..8cd611e1e42f177e7331ca4c3ea08a350a613e7f 100644 (file)
@@ -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 = []