mirror of
https://github.com/JuLi0n21/pwa-player.git
synced 2026-04-19 15:30:05 +00:00
fix cloudflare fr?
This commit is contained in:
@@ -302,7 +302,7 @@ func extractImageFromFile(osuRoot, folder, file string) string {
|
||||
bm, err := parser.ParseOsuFile(filepath.Join(osuRoot, "Songs", folder, file))
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
return "404.png"
|
||||
return ""
|
||||
}
|
||||
|
||||
bgImage := bm.BackgroundImage()
|
||||
@@ -310,5 +310,5 @@ func extractImageFromFile(osuRoot, folder, file string) string {
|
||||
return filepath.Join(folder, bgImage)
|
||||
}
|
||||
|
||||
return "404.png"
|
||||
return ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user