1
0
Fork 0
mirror of synced 2024-06-26 18:21:15 +12:00

Stopped printing stuff as testing has been completed

This commit is contained in:
phxntxm 2016-09-24 00:54:30 -05:00
parent fca698b557
commit 17c4437c3c

View file

@ -25,7 +25,7 @@ class Twitch:
with aiohttp.ClientSession() as s:
async with s.get(url) as r:
response = await r.text()
print(response)
# For some reason Twitch's API call is not reliable, sometimes it returns stream as None
# That is what we're checking specifically, sometimes it doesn't exist in the returned JSON at all
# Sometimes it returns something that cannot be decoded with JSON
@ -111,7 +111,6 @@ class Twitch:
data = await r.json()
with open("twitch_testing", 'w') as f:
json.dump(data, f)
print("URL was: {}".format(twitch_url), file=f)
fmt = "Username: {}".format(data['display_name'])
fmt += "\nStatus: {}".format(data['status'])