Fixing badge
parent
47809f991c
commit
f6c1f2d150
2
badge.go
2
badge.go
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue