janw / podcast-archiver

Archive all your favorite podcasts
MIT License
123 stars 21 forks source link

Slugify not removing slashes in episode names #148

Closed monkecoder42 closed 5 months ago

monkecoder42 commented 6 months ago

When downloading a podcast episode with a name that contains a slash character, with the "slugify" option enabled, some unexpected behavior occured: For example, if the show name is "AAA", date "YYYY-MM-DD" and episode name "BBB / CCC", the file was saved in the path out/AAAA/YYYY-MM-DD BBB-/-CCC.mp3. So the slash character was not removed by slugify which led to the creation of a subdirectory. Instead I would have expected the path to be out/AAAA/YYYY-MM-DD BBB---CCC.mp3, with the slash replaced by a dash.

janw commented 5 months ago

Fixed in v1.4.1. Thank you!