Skip to content

Commit

Permalink
don't download empty cover string
Browse files Browse the repository at this point in the history
  • Loading branch information
sentriz committed Nov 16, 2024
1 parent 939408a commit ba32117
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions podcast/podcast.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit ba32117

Please sign in to comment.