From 3b98b4b02cc7ea3bca9cff244ca671b11ae5e59d Mon Sep 17 00:00:00 2001 From: DevilXD <4180725+DevilXD@users.noreply.github.com> Date: Mon, 12 Jan 2026 08:51:02 +0100 Subject: [PATCH] Another fix for the spade url extraction --- channel.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/channel.py b/channel.py index 554f8a5..572c7ef 100644 --- a/channel.py +++ b/channel.py @@ -288,8 +288,9 @@ class Channel: SETTINGS_PATTERN: str = ( r'src="(https://[\w.]+/config/settings\.[0-9a-f]{32}\.js)"' ) + # NOTE: "beacon" appears in the file first, so it's the most likely one to be matched. SPADE_PATTERN: str = ( - r'"beacon_?url": ?"(https://video-edge-[.\w\-/]+\.ts(?:\?allow_stream=true)?)"' + r'"(?:beacon|spade)_?url": ?"(https://[.\w\-/]+\.ts(?:\?allow_stream=true)?)"' ) async with self._twitch.request("GET", self.url) as response1: streamer_html: str = await response1.text(encoding="utf8")