diff options
author | jazz1611 <jazz1611@users.noreply.github.com> | 2024-01-28 09:15:29 +0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-28 02:15:29 +0000 |
commit | c91d8b1899403daff6fc15206ad32de8db17fb8f (patch) | |
tree | d01a8f2bd55a05ad53bc8b329e00f2aeb6ae2ef5 | |
parent | 77c2472ca1ef9050a66aa68bc5fa1bee88706c66 (diff) |
[ie/redtube] Fix formats extraction (#9076)
Authored by: jazz1611
-rw-r--r-- | yt_dlp/extractor/redtube.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/yt_dlp/extractor/redtube.py b/yt_dlp/extractor/redtube.py index 172c31b39..36d530daf 100644 --- a/yt_dlp/extractor/redtube.py +++ b/yt_dlp/extractor/redtube.py @@ -7,6 +7,7 @@ from ..utils import ( str_to_int, unified_strdate, url_or_none, + urljoin, ) @@ -79,7 +80,7 @@ class RedTubeIE(InfoExtractor): 'media definitions', default='{}'), video_id, fatal=False) for media in medias if isinstance(medias, list) else []: - format_url = url_or_none(media.get('videoUrl')) + format_url = urljoin('https://www.redtube.com', media.get('videoUrl')) if not format_url: continue format_id = media.get('format') |