Fix spade url extraction

This commit is contained in:
DevilXD committed 2025-12-11 08:30:45 +01:00
1 parent 6082d6329f
commit 7abfbdca9b
1 file changed
+1 -1
+1 -1
View File
@@ -289,7 +289,7 @@ class Channel:
r'src="(https://[\w.]+/config/settings\.[0-9a-f]{32}\.js)"' r'src="(https://[\w.]+/config/settings\.[0-9a-f]{32}\.js)"'
) )
SPADE_PATTERN: str = ( SPADE_PATTERN: str = (
r'"spade_?url": ?"(https://video-edge-[.\w\-/]+\.ts(?:\?allow_stream=true)?)"' r'"beacon_?url": ?"(https://video-edge-[.\w\-/]+\.ts(?:\?allow_stream=true)?)"'
) )
async with self._twitch.request("GET", self.url) as response1: async with self._twitch.request("GET", self.url) as response1:
streamer_html: str = await response1.text(encoding="utf8") streamer_html: str = await response1.text(encoding="utf8")