mirror of https://github.com/yt-dlp/yt-dlp.git
[ie/hytale] Use `CloudflareStreamIE` explicitly (#9672)
Authored by: llamasblade
This commit is contained in:
parent
fc2879ecb0
commit
31b417e1d1
|
@ -1,7 +1,8 @@
|
||||||
import re
|
import re
|
||||||
|
|
||||||
|
from .cloudflarestream import CloudflareStreamIE
|
||||||
from .common import InfoExtractor
|
from .common import InfoExtractor
|
||||||
from ..utils import traverse_obj
|
from ..utils.traversal import traverse_obj
|
||||||
|
|
||||||
|
|
||||||
class HytaleIE(InfoExtractor):
|
class HytaleIE(InfoExtractor):
|
||||||
|
@ -49,7 +50,7 @@ class HytaleIE(InfoExtractor):
|
||||||
entries = [
|
entries = [
|
||||||
self.url_result(
|
self.url_result(
|
||||||
f'https://cloudflarestream.com/{video_hash}/manifest/video.mpd?parentOrigin=https%3A%2F%2Fhytale.com',
|
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(
|
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})"',
|
r'<stream\s+class\s*=\s*"ql-video\s+cf-stream"\s+src\s*=\s*"([a-f0-9]{32})"',
|
||||||
webpage)
|
webpage)
|
||||||
|
|
Loading…
Reference in New Issue