Implement channel watching using the new method

This commit is contained in:
DevilXD committed 2024-06-22 18:16:14 +02:00
1 parent c7f8d56946
commit b47b2089c0
5 files changed
+91 -153

No files matched your search

+13 -1
View File
@@ -116,7 +116,7 @@ DEFAULT_LANG = "English"
PING_INTERVAL = timedelta(minutes=3)
PING_TIMEOUT = timedelta(seconds=10)
ONLINE_DELAY = timedelta(seconds=120)
WATCH_INTERVAL = timedelta(seconds=59)
WATCH_INTERVAL = timedelta(seconds=20)
# Strings
WINDOW_TITLE = f"Twitch Drops Miner v{__version__} (by DevilXD)"
# Logging
@@ -310,6 +310,18 @@ GQL_OPERATIONS: dict[str, GQLOperation] = {
"channelID": ..., # channel ID as a str
},
),
# retuns stream playback access token
"PlaybackAccessToken": GQLOperation(
"PlaybackAccessToken",
"3093517e37e4f4cb48906155bcd894150aef92617939236d2508f3375ab732ce",
variables={
"isLive": True,
"login": ..., # channel login
"isVod": False,
"vodID": "",
"playerType": "site"
},
),
# returns live channels for a particular game
"GameDirectory": GQLOperation(
"DirectoryPage_Game",