From cbcf86aafca621a86b43bf31687fd29e3bd66a30 Mon Sep 17 00:00:00 2001 From: Izra Date: Fri, 6 Jun 2025 11:37:07 +0900 Subject: [PATCH] [ie/asobistage] Use get_by_cuid instead of webpage --- yt_dlp/extractor/asobistage.py | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/yt_dlp/extractor/asobistage.py b/yt_dlp/extractor/asobistage.py index cab80675b8..36b9177c32 100644 --- a/yt_dlp/extractor/asobistage.py +++ b/yt_dlp/extractor/asobistage.py @@ -62,9 +62,6 @@ class AsobiStageIE(InfoExtractor): _API_HOST = 'https://asobistage-api.asobistore.jp' _HEADERS = {} - _EMBED_HEADERS = { - 'Referer': 'https://asobistage.asobistore.jp/', - } _is_logged_in = False @functools.cached_property @@ -185,19 +182,23 @@ def _extract_premium_lp(self, video_id, event, slug): entries = [] for content in traverse_obj(root_content, ('contentList', ..., 'contents', ...)): movie_url = content.get('movieUrl') - embed_id = movie_url.rsplit('/', 1)[-1] - webpage = self._download_webpage( - movie_url, embed_id, - 'Getting movie embed page', 'Failed to get movie embed page', - headers=self._EMBED_HEADERS) - m3u8_url = self._search_regex(r"