diff --git a/channel.py b/channel.py index b20fd2e..54bf193 100644 --- a/channel.py +++ b/channel.py @@ -287,9 +287,7 @@ 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|spade)_?url": ?"(https://[.\w\-/]+\.ts(?:\?allow_stream=true)?)"' - ) + SPADE_PATTERN: str = r'"(?:beacon|spade)_?url": ?"(https://[.\w\-/]+)"' async with self._twitch.request("GET", self.url) as response1: streamer_html: str = await response1.text(encoding="utf8") match = re.search(SPADE_PATTERN, streamer_html, re.I)