Don't get covers from SGDB for blacklisted games
This commit is contained in:
@@ -33,10 +33,13 @@ class SGDBSave:
|
|||||||
Gio.Task.new(None, None, self.task_done).run_in_thread(create_func(game))
|
Gio.Task.new(None, None, self.task_done).run_in_thread(create_func(game))
|
||||||
|
|
||||||
def update_cover(self, task, game):
|
def update_cover(self, task, game):
|
||||||
if not needs_cover(
|
if (
|
||||||
self.win.schema,
|
not needs_cover(
|
||||||
(self.win.covers_dir / f"{game.game_id}.gif").is_file()
|
self.win.schema,
|
||||||
or (self.win.covers_dir / f"{game.game_id}.tiff").is_file(),
|
(self.win.covers_dir / f"{game.game_id}.gif").is_file()
|
||||||
|
or (self.win.covers_dir / f"{game.game_id}.tiff").is_file(),
|
||||||
|
)
|
||||||
|
or game.blacklisted
|
||||||
):
|
):
|
||||||
task.return_value(game)
|
task.return_value(game)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user