🎨 Moved things to managers

This commit is contained in:
GeoffreyCoulaud
2023-05-23 16:49:37 +02:00
parent abe41635fd
commit 95524563bb
5 changed files with 34 additions and 77 deletions

View File

@@ -96,18 +96,6 @@ class SteamSourceIterator(SourceIterator):
if cover_path.is_file():
save_cover(game.game_id, resize_cover(cover_path))
# Get online metadata
# TODO move to its own manager
try:
online_data = steam.get_api_data(appid=appid)
except (HTTPError, JSONDecodeError):
pass
except (SteamNotAGameError, SteamGameNotFoundError):
game.update_values({"blacklisted": True})
else:
game.update_values(online_data)
return game
class SteamSource(Source):
name = "Steam"