Compare commits

..

2 Commits

Author SHA1 Message Date
jazz1611
8617d64e94
Update redtube.py
use urljoin instead of url_or_none
2024-01-27 17:00:53 +07:00
jazz1611
2a3b1280b8
Update yt_dlp/extractor/redtube.py
it works fine. let me update the code again

Co-authored-by: bashonly <88596187+bashonly@users.noreply.github.com>
2024-01-27 16:58:25 +07:00

View File

@ -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('https://www.redtube.com' + media.get('videoUrl'))
format_url = urljoin('https://www.redtube.com', media.get('videoUrl'))
if not format_url:
continue
format_id = media.get('format')