Unverified Commit fc4b9b74 authored by Philip Taron's avatar Philip Taron Committed by GitHub
Browse files

fetchItchIo: fix zero price games (#505540)

parents 354a2290 5b897139
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ def urlopen(url_or_request):
with urlopen(f'{GAME_URL}/data.json') as response:
    data = json.load(response)
    GAME_ID = data['id']
    IS_FREE = 'price' not in data
    IS_FREE = 'price' not in data or data['price'] == '$0.00'

def api(path, params={}, download=False):
    url = f'{ENDPOINT}{path}?{urllib.parse.urlencode({'api_key': API_KEY, **params})}'