fix(podcast): slightly more robust downloading and concurrency (#433)

This commit is contained in:
Senan Kelly
2023-12-21 03:20:22 +00:00
committed by GitHub
parent 2f109f1982
commit f34cd2e213
4 changed files with 202 additions and 221 deletions

View File

@@ -527,7 +527,7 @@ func (pe *PodcastEpisode) MIME() string {
}
func (pe *PodcastEpisode) AbsPath() string {
if pe.Podcast == nil {
if pe.Podcast == nil || pe.Podcast.RootDir == "" {
return ""
}
return filepath.Join(pe.Podcast.RootDir, pe.Filename)