Skip to content

Commit

Permalink
Merge pull request #525 from hingston/fix-client-version-regex
Browse files Browse the repository at this point in the history
Fix regex to extract the client version
  • Loading branch information
rdavydov authored Jun 15, 2024
2 parents ea9e2e1 + bd1daa8 commit b4d3a93
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TwitchChannelPointsMiner/classes/Twitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def __init__(self, username, user_agent, password=None):
self.client_session = token_hex(16)
self.client_version = CLIENT_VERSION
self.twilight_build_id_pattern = re.compile(
r"window\.__twilightBuildID=\"([0-9A-Fa-f]{8}-[0-9A-Fa-f]{4}-4[0-9A-Fa-f]{3}-[89ABab][0-9A-Fa-f]{3}-[0-9A-Fa-f]{12})\";"
r'window\.__twilightBuildID\s*=\s*"([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})"'
)

def login(self):
Expand Down

0 comments on commit b4d3a93

Please sign in to comment.