SamTV12345 / PodFetch

A sleek and efficient podcast downloader.
https://samtv12345.github.io/PodFetch
Apache License 2.0
347 stars 25 forks source link

Date format differs from example #526

Closed chrisgalloway1 closed 9 months ago

chrisgalloway1 commented 9 months ago

Describe the bug

Thanks for the work on this project - just discovered PodFetch and love that it's under active development and you seem very receptive to feedback!

A bug I encountered, though: When using the {date} replacer for episode naming, the sample episode format shows a format of '2023-12-24', but when the episode is saved, the actual format is different (at least in my testing of one podcast). The format of the episode on disk is (for example): '2023-12-24T01:00:00-08:00'.mp3.

I think either providing a {shortDate} option (that matches the sample episode format) or for the {date} replacer to be consistent with the example (I prefer the shorter date format in the example) would be potential fixes for this.

(Extra: I would love an option to not have single quotes/apostrophes in the folder/filenames, but maybe I'm just not seeing that option if it exists)

Reproduction

Podcasts in this feed: https://www.podcastone.com/podcast?categoryID2=2336

System Info

Running this in Docker

Used Package Manager

n/a

Validations

SamTV12345 commented 9 months ago

Thanks for the compliment. I am always happy to help. This issue is fixed.

chrisgalloway1 commented 9 months ago

I appreciate the effort, but looks like it may still be an issue (not totally sure that I'm running the most up-to-date version, but I did update my docker container). I may not have been as descriptive - the issue is on the episode itself, and not the podcast - I think the fix might need to go in the perform_episode_variable_replacement function? (sorry, not that familiar with rust or I'd try to open a PR myself)

SamTV12345 commented 9 months ago

Thanks for testing. Sorry I forgot that spot in the code 😄 . That should be fixed.

chrisgalloway1 commented 9 months ago

Works great, thanks!