lightpohl / podcast-dl

A humble CLI for downloading and archiving podcasts.
MIT License
405 stars 31 forks source link

Feature Request: Download RSS podcast using Local RSS file #64

Closed AlphaHasher closed 8 months ago

AlphaHasher commented 9 months ago

As the title says, it would be great to be able to pass an RSS file that you have locally because the RSS feed that I want to download sometimes includes broken & bad metadata, and instead of manually editing the metadata of each audio file, to pass an edited RSS file (that I downloaded and edited) through the CLI?

lightpohl commented 9 months ago

Hey! That would be a fun addition — one thing that holds it back is that the RSS parser library podcast-dl uses doesn't support local files, so it would need to duplicate the parsing for local files. I'll keep pondering the best way to add something like that though.

If you're looking for a workaround, you can host the local file and point podcast-dl to it! For example, this is how it would work with npx.

# inside the directory containing my-custom-rss.xml
npx http-server
# in a separate terminal
podcast-dl --url "http://127.0.0.1:8080/my-custom-rss.xml"
lightpohl commented 8 months ago

Hey again! This ended up being easier than I expected with the latest version — added the --file param to the v9.3.0 release. Available here! https://github.com/lightpohl/podcast-dl/releases/tag/v9.3.0

AlphaHasher commented 8 months ago

You're awesome!