From 5b5891e48effdd1c7fc7307ec9c46cbcda1dd755 Mon Sep 17 00:00:00 2001 From: Ludovico Gerardi Date: Thu, 11 Apr 2024 17:44:21 +0200 Subject: [PATCH 1/2] [hytale] Use CloudflareStreamIE explicitly Since CloudflareStreamIE is always used as the "final" extractor, making explicit use of it doesn't require yt-dlp to find the correct one itself. --- yt_dlp/extractor/hytale.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yt_dlp/extractor/hytale.py b/yt_dlp/extractor/hytale.py index 0f4dcc309..9dd371bab 100644 --- a/yt_dlp/extractor/hytale.py +++ b/yt_dlp/extractor/hytale.py @@ -49,7 +49,7 @@ class HytaleIE(InfoExtractor): entries = [ self.url_result( f'https://cloudflarestream.com/{video_hash}/manifest/video.mpd?parentOrigin=https%3A%2F%2Fhytale.com', - title=self._titles.get(video_hash), url_transparent=True) + ie='CloudflareStream', title=self._titles.get(video_hash), url_transparent=True) for video_hash in re.findall( r' Date: Fri, 12 Apr 2024 07:50:23 +0200 Subject: [PATCH 2/2] Use CloudflareStreamIE class in url_result --- yt_dlp/extractor/hytale.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yt_dlp/extractor/hytale.py b/yt_dlp/extractor/hytale.py index 9dd371bab..69dd604f3 100644 --- a/yt_dlp/extractor/hytale.py +++ b/yt_dlp/extractor/hytale.py @@ -2,6 +2,7 @@ import re from .common import InfoExtractor from ..utils import traverse_obj +from .cloudflarestream import CloudflareStreamIE class HytaleIE(InfoExtractor): @@ -49,7 +50,7 @@ class HytaleIE(InfoExtractor): entries = [ self.url_result( f'https://cloudflarestream.com/{video_hash}/manifest/video.mpd?parentOrigin=https%3A%2F%2Fhytale.com', - ie='CloudflareStream', title=self._titles.get(video_hash), url_transparent=True) + ie=CloudflareStreamIE, title=self._titles.get(video_hash), url_transparent=True) for video_hash in re.findall( r'