From 55b884e17f99b2a4364fa56b18dd781dbb15b1fc Mon Sep 17 00:00:00 2001 From: Felipe M Date: Tue, 5 Jan 2021 18:22:23 +0100 Subject: [PATCH] Only store covers if there's one --- pkg/cli/cli.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/cli/cli.go b/pkg/cli/cli.go index 7dbee49..2502125 100644 --- a/pkg/cli/cli.go +++ b/pkg/cli/cli.go @@ -77,7 +77,7 @@ func processGames(games []games.Game, outputPath string, dryRun bool, downloadCo } } - if downloadCovers && !dryRun { + if downloadCovers && !dryRun && game.Cover.Path != "" { destinationCoverPath := filepath.Join(destinationPath, game.Cover.DestinationName) if _, err := os.Stat(destinationCoverPath); os.IsNotExist(err) {