Fix animated covers in the overview

This commit is contained in:
kramo
2023-04-11 00:01:05 +02:00
parent 62aff0e7cc
commit 8ec2998077
4 changed files with 46 additions and 11 deletions

View File

@@ -47,6 +47,8 @@ def save_cover(
(animated_covers_dir / game_id).unlink(missing_ok=True)
if animation_path:
if animation_path == animated_covers_dir / game_id:
return
animated_covers_dir.mkdir(parents=True, exist_ok=True)
with animated_covers_dir / game_id as open_file:
copyfile(animation_path, open_file)