implemented game art download

This commit is contained in:
2026-01-05 16:03:14 +01:00
parent 08d2d528c7
commit 1d766a843e
3 changed files with 115 additions and 0 deletions

View File

@@ -57,3 +57,17 @@ func Rename(file string, config Config) {
fmt.Printf("Renamed %s to %s", file, newPath)
}
func DownloadGameArt(file string, config Config) {
fmt.Printf("Scanning file: %s\n", file)
gameID, err := scanGameFileForID(file)
if err != nil {
fmt.Printf("Failed to scan game file: %s", err)
os.Exit(1)
}
fmt.Printf("Found game ID: %s\n", gameID)
downloadArtForGame(gameID, "./art")
}