Compare commits

...

4 Commits

Author SHA1 Message Date
llamasblade 760939e94f
Merge e028dc1631 into 89f535e265 2024-04-23 09:43:26 +03:00
bashonly 89f535e265
[ci] Fix `curl-cffi` installation (Bugfix for 02483bea1c)
Authored by: bashonly
2024-04-22 20:36:01 +00:00
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
2 changed files with 3 additions and 2 deletions

View File

@ -53,7 +53,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install test requirements
run: python3 ./devscripts/install_deps.py --include dev --include curl_cffi
run: python3 ./devscripts/install_deps.py --include dev --include curl-cffi
- name: Run tests
continue-on-error: False
run: |

View File

@ -2,6 +2,7 @@
from .common import InfoExtractor
from ..utils import traverse_obj
from .cloudflarestream import CloudflareStreamIE
class HytaleIE(InfoExtractor):
@ -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)
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)