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

10
pod.go
View File

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