Fixing badge

main
Uriel Fanelli 2025-05-06 20:55:07 +02:00
parent 47809f991c
commit f6c1f2d150
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ func badgeHandler(w http.ResponseWriter, r *http.Request) {
imgPath := filepath.Join(imageBasePath, episode+".jpg") imgPath := filepath.Join(imageBasePath, episode+".jpg")
// Verifica se il file MP3 esiste // Verifica se il file MP3 esiste
if _, err := os.Stat("." + mp3Path); os.IsNotExist(err) { if _, err := os.Stat(mp3Path); os.IsNotExist(err) {
http.Error(w, "Episode not found: "+mp3Path, http.StatusNotFound) http.Error(w, "Episode not found: "+mp3Path, http.StatusNotFound)
return return
} }