removed format function for old id format
This commit is contained in:
@@ -21,14 +21,8 @@ type artUrls struct {
|
||||
func getArtUrlForGameFromGithub(gameID string) artUrls {
|
||||
const baseURL = "https://raw.githubusercontent.com/Luden02/psx-ps2-opl-art-database/refs/heads/main/PS2"
|
||||
|
||||
prefix := gameID[0:4]
|
||||
num1 := gameID[5:8]
|
||||
num2 := gameID[8:10]
|
||||
|
||||
newGameID := fmt.Sprintf("%s_%s.%s", prefix, num1, num2)
|
||||
|
||||
genURL := func(kind string) string {
|
||||
return fmt.Sprintf("%s/%s/%s_%s.png", baseURL, newGameID, newGameID, kind)
|
||||
return fmt.Sprintf("%s/%s/%s_%s.png", baseURL, gameID, gameID, kind)
|
||||
}
|
||||
|
||||
return artUrls{
|
||||
|
||||
Reference in New Issue
Block a user