Skip to content

Commit

Permalink
[ie/hytale] Use CloudflareStreamIE explicitly (yt-dlp#9672)
Browse files Browse the repository at this point in the history
Authored by: llamasblade
  • Loading branch information
llamasblade authored May 11, 2024
1 parent fc2879e commit 31b417e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions yt_dlp/extractor/hytale.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import re

from .cloudflarestream import CloudflareStreamIE
from .common import InfoExtractor
from ..utils import traverse_obj
from ..utils.traversal import traverse_obj


class HytaleIE(InfoExtractor):
Expand Down Expand Up @@ -49,7 +50,7 @@ def _real_extract(self, url):
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)
CloudflareStreamIE, title=self._titles.get(video_hash), url_transparent=True)
for video_hash in re.findall(
r'<stream\s+class\s*=\s*"ql-video\s+cf-stream"\s+src\s*=\s*"([a-f0-9]{32})"',
webpage)
Expand Down

0 comments on commit 31b417e

Please sign in to comment.