Fixed rss cover 3

main
Uriel Fanelli 2025-05-03 15:05:43 +02:00
parent c927ff4b1c
commit 762ff7b92b
1 changed files with 1 additions and 4 deletions

5
pod.go
View File

@ -88,14 +88,11 @@ func scanEpisodes() ([]Episode, error) {
ep := Episode{
Title: meta.Title(),
File: baseName + ".mp3",
Cover: coverPath,
PubDate: info.ModTime().Format(time.RFC1123),
Size: info.Size(),
}
if _, err := os.Stat(coverPath); err == nil {
ep.Cover, _ = filepath.Rel(".", coverPath)
}
episodes = append(episodes, ep)
return nil
})