diff --git a/podcast/podcast.go b/podcast/podcast.go index 747b0844..4679c3b3 100644 --- a/podcast/podcast.go +++ b/podcast/podcast.go @@ -319,6 +319,10 @@ func getPodcastEpisodeFilename(podcast *db.Podcast, podcastEpisode *db.PodcastEp } func (p *Podcasts) downloadPodcastCover(podcast *db.Podcast) error { + if podcast.ImageURL == "" { + return nil + } + imageURL, err := url.Parse(podcast.ImageURL) if err != nil { return fmt.Errorf("parse image url: %w", err)