#74
in
Command line interface
yt-dlp works with many but not all podcast websites. You could download everything with metadata and mtime and then sort by earliest to most recent in a file browser.
I wrote a tool that might help with this if you don't want to download the files immediately but it definitely isn't required if you just download everything and use yt-dlp's download-archive.
pip install xklb
lb tubeadd podcasts.db 'http://www.hellointernet.fm/podcast?format=rss'
lb listen podcast.db # it will keep track of what you played and prioritize playing things that haven't been played before
And later do tubeupdate to check for new episodes: lb tubeupdate podcasts.db
If the website extractor provides metadata about file creation (eg. YouTube extractor) then you could use this to play the oldest videos first: lb listen podcast.db -u time_modified
If you want to download later you could do this: lb dl podcast.db --audio # with the above example it saves to the folder "Generic" in the current working directory since it uses the yt-dlp generic extractor
https://github.com/chapmanjacobd/libraryI'm confused what xklb is doing in there. https://pypi.org/project/xklb/ describes it as being a manager for media libraries. I see from https://github.com/chapmanjacobd/library/ that it does have other features like merging SQLite databases, cluster sorting, and stuff.. but I'm intrigued why that stuff is in a media management library?
I would also[0] be interested in an argparse equivalent of this for my tool Library[1]
https://github.com/chapmanjacobd/library
My passion project is building CLI tools for managing files and curating media. I've been at it about 2 years now.
Most recently I wrote a subcommand for balancing files between disparate disks. Useful for mergerfs filesystems
If you wonder where the shell commands "library" and "lb" come from, see https://github.com/chapmanjacobd/library
And specifically, "nouns" here are defined by this regex: https://github.com/chapmanjacobd/library/blob/main/scripts/m...