akhilrex / podgrab

A self-hosted podcast manager/downloader/archiver tool to download podcast episodes as soon as they become live with an integrated player.
GNU General Public License v3.0
1.61k stars 88 forks source link

Rename File Based on Format #70

Open dannyhanes opened 3 years ago

dannyhanes commented 3 years ago

I would love to set the name of the downloaded files. Currently it downloads them with the title as the filename. I would like the ability to create custom filenames with the data available. From: Love_Hurts_Kemp_Powers_&_Beth_Bradley To: The Moth - 2021-03-21 - Love Hurts: Kemp Powers & Beth Bradley $podName - $releaseDate - $podTitle

akhilrex commented 3 years ago

Not sure if you checked but you already have the ability to append date at start of the file. You can enable it in the settings. The episodes are also downloaded into respective folders only. Is there any specific use-case you have in mind?

dannyhanes commented 3 years ago

So I added the date per the settings which helps.

I know that a lot of third party media players (Plex, Jellyfin, Emby etc) have different file / folder structures that they prefer in terms of reading data. Being able to configure PodGrab to fit those requirements would be a big help. For example, I use youtube-dl to grab videos for Plex and I keep them in the following structure:

Channel Name
-- Channel Name - Release Date - Video Title
    -- Channel Name - Release Date - Video Title.mp4
    -- Channel Name - Release Date - Video Title.json
    -- Channel Name - Release Date - Video Title.vtt
    -- Channel Name - Release Date - Video Title.jpg
Podcast Name
-- Podcast Name - Release Date - Podcast Title
    -- Podcast Name - Release Date - Podcast Title.mp3
    -- Podcast Name - Release Date - Podcast Title.json
    -- Podcast Name - Release Date - Podcast Title.vtt
    -- Podcast Name - Release Date - Podcast Title.jpg

This would keep things very organized and allow assets for each episode to be stored together.

fracai commented 3 years ago

To build on this, it'd be useful to add additional folder structures. Before I found Podgrab, I used my own script which output to: podcasts/${SHOW_TITLE}/${YEAR}/${MONTH}/${YYYY-mm-dd} ${EPISODE_TITLE}

It looks like I can manipulate the podgrab.db to match that, but it'd be nice to have native support.