implemented game art download
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user