Update plugin.py

This commit is contained in:
Gordon Shumway 2019-12-11 13:32:24 -05:00 committed by GitHub
parent 03bf440bfe
commit 601e97a69e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -854,7 +854,7 @@ class SpiffyTitles(callbacks.Plugin):
items = stream["data"][0]
title = items["title"]
live = True
if int(items["game_id"]):
if items["game_id"]:
game_id = items["game_id"]
get_game = requests.get("https://api.twitch.tv/helix/games?id={}".format(game_id), timeout=10, headers=headers)
game_data = json.loads(get_game.text)