🚧 Removed blacklist on 403

This commit is contained in:
GeoffreyCoulaud
2023-06-01 00:40:28 +02:00
parent aa33e79963
commit f05d1e702b
3 changed files with 4 additions and 6 deletions

View File

@@ -52,12 +52,12 @@ class Game(Gtk.Box):
executable = None
game_id = None
source = None
hidden = None
hidden = False
last_played = 0
name = None
developer = None
removed = None
blacklisted = None
removed = False
blacklisted = False
game_cover = None
version = 0

View File

@@ -62,7 +62,6 @@ class HeroicSourceIterator(SourceIterator):
service = self.sub_sources[runner]["service"]
values = {
"version": shared.SPEC_VERSION,
"hidden": False,
"source": self.source.id,
"added": int(time()),
"name": entry["title"],

View File

@@ -2,7 +2,6 @@ from src.game import Game
from src.store.managers.async_manager import AsyncManager
from src.utils.steam import (
HTTPError,
SteamForbiddenError,
SteamGameNotFoundError,
SteamHelper,
SteamNotAGameError,
@@ -24,7 +23,7 @@ class SteamAPIManager(AsyncManager):
steam = SteamHelper()
try:
online_data = steam.get_api_data(appid=appid)
except (SteamNotAGameError, SteamGameNotFoundError, SteamForbiddenError):
except (SteamNotAGameError, SteamGameNotFoundError):
game.update_values({"blacklisted": True})
else:
game.update_values(online_data)