Another fix for the spade url extraction
This commit is contained in:
1 parent
cd563b595b
commit
3b98b4b02c
1 file changed
+2
-1
+2
-1
@@ -288,8 +288,9 @@ class Channel:
|
|||||||
SETTINGS_PATTERN: str = (
|
SETTINGS_PATTERN: str = (
|
||||||
r'src="(https://[\w.]+/config/settings\.[0-9a-f]{32}\.js)"'
|
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 = (
|
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:
|
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")
|
||||||
|
|||||||
Reference in new issue
Block a user