Only store covers if there's one

This commit is contained in:
Felipe M 2021-01-05 18:22:23 +01:00
parent fa7016eb61
commit 55b884e17f
1 changed files with 1 additions and 1 deletions

View File

@ -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) {