advplyr / audiobookshelf

Self-hosted audiobook and podcast server
https://audiobookshelf.org
GNU General Public License v3.0
6.09k stars 431 forks source link

[Enhancement]: Utilize The Podcast Index #677

Open genebean opened 2 years ago

genebean commented 2 years ago

Describe the feature/enhancement

It appears the podcast features utilize iTunes only. It would be awesome if you’d add The Podcast Index too

advplyr commented 2 years ago

Podcast index requires an API key to use. I got an API key by entering my email address but that API key can't be put inside the project for everyone. According to their ToS

Developer credentials may not be embedded in open source projects.

genebean commented 2 years ago

How do various podcast apps use it then? Would Audiobookshelf's needs be different from those?

advplyr commented 2 years ago

They are not open source I'm guessing? I'm not sure.

genebean commented 2 years ago

Podverse seems to be using it. https://podverse.fm/podcast/wI5oc-1xBU is a show that is only listed in the podcast index. Their code is at https://github.com/podverse/podverse-web and a search for "podcast index" turns up a lot of stuff. Sorry I don't know more about what to hunt for in the code.

advplyr commented 2 years ago

It looks like they are storing their API key for podcast index on their server and expecting users who host this themselves to supply their own podcast index api key. https://github.com/podverse/podverse-ops/blob/master/config/podverse-api-prod.env.example#L95

genebean commented 2 years ago

Ahhh. I’d be down with that as a self hoster, fwiw. Not ideal, but not all that surprising either as I have to grab all kinds of api keys for Home Assistant and the like to talk to other things.

genebean commented 2 years ago

Maybe if a key is provided via an env file or other config option it could default to using Podcast Index.

advplyr commented 2 years ago

We could have a setting in the config you can set your podcast index api key there. If that is set then it will be available as a provider for podcasts.

genebean commented 2 years ago

That sounds great to me

Raeitus commented 1 year ago

I hope that this will be implemented some day. PodFetch was able to implement this by having an environment variable to able to input your API keys, and it works well.

advplyr commented 1 year ago

@realmain When I'm looking for popular feature requests to implement I usually sort by the number of thumbs up on the original post.