diff --git a/badge.go b/badge.go index 5bb4d9c..51a0760 100644 --- a/badge.go +++ b/badge.go @@ -29,7 +29,7 @@ func badgeHandler(w http.ResponseWriter, r *http.Request) { imgPath := filepath.Join(imageBasePath, episode+".jpg") // 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) return }