Fixed rss path

main
Uriel Fanelli 2025-05-03 14:46:16 +02:00
parent 631a99117c
commit 6d8bd4aff5
1 changed files with 5 additions and 5 deletions

6
pod.go
View File

@ -44,9 +44,9 @@ func generateRSS() error {
rss += fmt.Sprintf(`
<item>
<title>%s</title>
<enclosure url="%s/%s" type="audio/mpeg" length="%d"/>
<pubDate>%s</pubDate>`,
ep.Title, baseURL, ep.File, ep.Size, ep.PubDate)
<enclosure url="%s/audio/%s" type="audio/mpeg" length="%d"/>
<pubDate>%s</pubDate>
`, ep.Title, baseURL, filepath.Base(ep.File), ep.Size, ep.PubDate)
if ep.Cover != "" {
rss += fmt.Sprintf(`