podgrab icon indicating copy to clipboard operation
podgrab copied to clipboard

Episode path format

Open fracai opened this issue 4 years ago • 9 comments

This should close #70 by replacing the "Append Date" and "Append Episode Number" with additional formatting tokens that can be combined however desired. It also adds support for path separators in the format to introduce additional folder structures. The show title is still used as the base directory. Something like: %YYYY%/%YYYY%-%mm%/%YYYY%-%mm%-%dd% %EpisodeTitle% would result in a file saved to something like: /assets/This American Life/2021/2021-05/2021-05-28 Good Grief.mp3

fracai avatar Jun 04 '21 15:06 fracai

I am a little tied up with work. A quick look into the changes seem to be fine. I would still want to test this locally once. Thanks for the work. Give me some time.

akhilrex avatar Jun 08 '21 09:06 akhilrex

No problem. Let me know if there's anything I can do to help.

fracai avatar Jun 08 '21 13:06 fracai

Since you have already worked on it maybe you could see if #95 can be accommodated in this as well.

Thanks and Regards

Akhil Gupta

On Tue, 8 Jun 2021, 6:52 pm Arno Hautala, @.***> wrote:

No problem. Let me know if there's anything I can do to help.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/akhilrex/podgrab/pull/108#issuecomment-856762464, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEMVPRUC772BWQ2PFFHTTTTRYKRFANCNFSM46DBE4LQ .

akhilrex avatar Jun 08 '21 13:06 akhilrex

Ah, I considered that, didn't see an obvious way to specify the number of zeros, and figured I'd leave it for another branch. I think it'd be easy enough to use something like %EpisodeNumber:##% to specify the number of zeroes. I'll take a look.

fracai avatar Jun 08 '21 13:06 fracai

Just pushed another commit with support for setting a minimum width for the episode number using %EpisodeNumber:X% to set X minimum digits. If the argument is missing or not parseable as a number, it'll default to no padding.

fracai avatar Jun 09 '21 03:06 fracai

That most recent commit should close #95 as well.

fracai avatar Jun 09 '21 03:06 fracai

Updated to resolve conflicts

fracai avatar Jul 24 '21 03:07 fracai

Resolved conflicts

fracai avatar Aug 29 '21 03:08 fracai

I built this branch, tested it, and it works. I appreciate the additional flexibility in naming, particularly the left-padded episode numbers. Note that I didn't attempt to merge upstream when building/testing though. Would be cool to see this get merged up.

treyturner avatar May 21 '22 07:05 treyturner