Skip to content

Commit

Permalink
debug lines in twitch checker to try and trouble shoot why its so slo…
Browse files Browse the repository at this point in the history
…w to detect at first
  • Loading branch information
Bombg committed Oct 14, 2024
1 parent c6cbccc commit 24752e4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions checkers/Twitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ def isModelOnline(twitchChannelName):
thumbUrlReq = requests.get(tempThumbUrl,allow_redirects=True)
time.sleep(1)
isOnlineJson = twitchJson['@graph'][0]['publication']['isLiveBroadcast']
logger.debug(f"IsOnline: {isOnlineJson}")
logger.debug(f"ThumbUrl: {tempThumbUrl}")
logger.debug(f"ThumbReqUrl:{thumbUrlReq.url}")
if isOnlineJson and tempThumbUrl == thumbUrlReq.url:
tempThumbUrl = tempThumbUrl + "?" + str(int(time.time()))
isOnline = True
Expand Down

0 comments on commit 24752e4

Please sign in to comment.