Fixed rss cover 4
parent
762ff7b92b
commit
3d7c65f057
6
pod.go
6
pod.go
|
@ -50,7 +50,7 @@ func generateRSS() error {
|
|||
|
||||
if ep.Cover != "" {
|
||||
rss += fmt.Sprintf(`
|
||||
<itunes:image href="%s/%s"/>`, baseURL, ep.Cover)
|
||||
<itunes:image href="%s/covers/%s"/>`, baseURL, ep.Cover)
|
||||
}
|
||||
|
||||
rss += "\n </item>"
|
||||
|
@ -83,12 +83,12 @@ func scanEpisodes() ([]Episode, error) {
|
|||
|
||||
// relPath, _ := filepath.Rel(".", path)
|
||||
baseName := strings.TrimSuffix(filepath.Base(path), filepath.Ext(path))
|
||||
coverPath := filepath.Join(coversDir, baseName+".jpg")
|
||||
// coverPath := filepath.Join(coversDir, baseName+".jpg")
|
||||
|
||||
ep := Episode{
|
||||
Title: meta.Title(),
|
||||
File: baseName + ".mp3",
|
||||
Cover: coverPath,
|
||||
Cover: baseName + ".jpg",
|
||||
PubDate: info.ModTime().Format(time.RFC1123),
|
||||
Size: info.Size(),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue