Fixed rss path
parent
631a99117c
commit
6d8bd4aff5
6
pod.go
6
pod.go
|
@ -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(`
|
||||
|
|
Loading…
Reference in New Issue