Fixed rss path
parent
631a99117c
commit
6d8bd4aff5
10
pod.go
10
pod.go
|
@ -42,11 +42,11 @@ func generateRSS() error {
|
|||
|
||||
for _, ep := range episodes {
|
||||
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)
|
||||
<item>
|
||||
<title>%s</title>
|
||||
<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