Skip to content

Commit

Permalink
fix(podcasts): make sure we use safeFilename for podcast episodes too (
Browse files Browse the repository at this point in the history
…#339)

Co-authored-by: Brian Doherty <brian@mediaserver.dohertyfamily.me>
  • Loading branch information
brian-doherty and Brian Doherty committed Jul 17, 2023
1 parent b4df1fa commit 5fb9c49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion podcasts/podcasts.go
Expand Up @@ -419,7 +419,7 @@ func (p *Podcasts) DownloadEpisode(episodeID int) error {
}
filename = path.Base(audioURL.Path)
}
filename = p.findUniqueEpisodeName(&podcast, &podcastEpisode, filename)
filename = p.findUniqueEpisodeName(&podcast, &podcastEpisode, safeFilename(filename))
audioFile, err := os.Create(path.Join(absPath(p.baseDir, &podcast), filename))
if err != nil {
return fmt.Errorf("create audio file: %w", err)
Expand Down

0 comments on commit 5fb9c49

Please sign in to comment.