[ie/redtube] Fix formats extraction (#9076)

Authored by: jazz1611
This commit is contained in:
jazz1611 2024-01-28 09:15:29 +07:00 committed by GitHub
parent 77c2472ca1
commit c91d8b1899
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

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