From c91d8b1899403daff6fc15206ad32de8db17fb8f Mon Sep 17 00:00:00 2001 From: jazz1611 Date: Sun, 28 Jan 2024 09:15:29 +0700 Subject: [PATCH] [ie/redtube] Fix formats extraction (#9076) Authored by: jazz1611 --- yt_dlp/extractor/redtube.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yt_dlp/extractor/redtube.py b/yt_dlp/extractor/redtube.py index 172c31b396..36d530dafc 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')