Added some more compatibilty
parent
c9ed290f63
commit
18b30fb55c
11
pod.go
11
pod.go
|
@ -34,8 +34,12 @@ func generateRSS() error {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
rss := fmt.Sprintf(`<?xml version="1.0"?>
|
rss := fmt.Sprintf(`<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<rss version="2.0" xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
|
<rss version="2.0"
|
||||||
|
xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
|
||||||
|
xmlns:podcast="https://podcastindex.org/namespace/1.0"
|
||||||
|
xmlns:atom="http://www.w3.org/2005/Atom"
|
||||||
|
xmlns:content="http://purl.org/rss/1.0/modules/content/">
|
||||||
<channel>
|
<channel>
|
||||||
<title>%s</title>
|
<title>%s</title>
|
||||||
<link>%s</link>`, podTitle, baseURL)
|
<link>%s</link>`, podTitle, baseURL)
|
||||||
|
@ -54,6 +58,9 @@ func generateRSS() error {
|
||||||
}
|
}
|
||||||
rss += fmt.Sprintf(`<link>%s/audio/%s</link>`, baseURL, filepath.Base(ep.File))
|
rss += fmt.Sprintf(`<link>%s/audio/%s</link>`, baseURL, filepath.Base(ep.File))
|
||||||
rss += fmt.Sprintf(`<guid>%s/audio/%s</guid>`, baseURL, filepath.Base(ep.File))
|
rss += fmt.Sprintf(`<guid>%s/audio/%s</guid>`, baseURL, filepath.Base(ep.File))
|
||||||
|
rss += fmt.Sprintf(`<language>it-it</language>`)
|
||||||
|
rss += fmt.Sprintf(`<copyright>© 2025 Uriel Fanelli</copyright>`)
|
||||||
|
rss += fmt.Sprintf(`<description>%s</description>`, ep.Title)
|
||||||
rss += "\n </item>"
|
rss += "\n </item>"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue