mirror of
https://github.com/rangermix/TwitchDropsMiner.git
synced 2026-06-02 18:39:38 +00:00
relax spade url regex (#29)
This commit is contained in:
@@ -297,9 +297,7 @@ class Channel:
|
||||
For mobile view, spade_url is available immediately from the page, skipping step #2.
|
||||
"""
|
||||
SETTINGS_PATTERN: str = r'src="(https://[\w.]+/config/settings\.[0-9a-f]{32}\.js)"'
|
||||
SPADE_PATTERN: str = (
|
||||
r'"beacon_?url": ?"(https://video-edge-[.\w\-/]+\.ts(?:\?allow_stream=true)?)"'
|
||||
)
|
||||
SPADE_PATTERN: str = r'"beacon_?url": ?"(https://[^"]+)"'
|
||||
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)
|
||||
|
||||
Reference in New Issue
Block a user