diff --git a/rss-xml.go b/rss-xml.go index 342ed83..56d335b 100644 --- a/rss-xml.go +++ b/rss-xml.go @@ -36,7 +36,7 @@ func generateRSS() error { epBaseUrl := baseURL + "/audio/" + filepath.Base(ep.File) - strip, found := strings.CutSuffix(epBaseUrl, ".mp3") + strip, found := strings.CutSuffix(filepath.Base(ep.File), ".mp3") if !found { log.Println("Seems the file is not mp3??????") }