Fix podcasts with / in the name
This commit is contained in:
committed by
Senan Kelly
parent
87cd303257
commit
f7772303b0
@@ -304,7 +304,8 @@ type Podcast struct {
|
||||
}
|
||||
|
||||
func (p *Podcast) Fullpath(podcastPath string) string {
|
||||
return filepath.Join(podcastPath, filepath.Clean(p.Title))
|
||||
sanitizedTitle := strings.ReplaceAll(p.Title, "/", "_")
|
||||
return filepath.Join(podcastPath, filepath.Clean(sanitizedTitle))
|
||||
}
|
||||
|
||||
func (p *Podcast) SID() *specid.ID {
|
||||
|
||||
Reference in New Issue
Block a user