Porównaj commity

...

3 Commity

Autor SHA1 Wiadomość Data
llamasblade 09baccd900
Merge e028dc1631 into 315b354429 2024-04-14 03:56:43 +05:30
Ludovico Gerardi e028dc1631 Use CloudflareStreamIE class in url_result 2024-04-12 07:50:23 +02:00
Ludovico Gerardi 5b5891e48e [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.
2024-04-11 17:44:21 +02:00
1 zmienionych plików z 2 dodań i 1 usunięć

Wyświetl plik

@ -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',
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'<stream\s+class\s*=\s*"ql-video\s+cf-stream"\s+src\s*=\s*"([a-f0-9]{32})"',
webpage)