kieraneglin / pinchflat

Your next YouTube media manager
GNU Affero General Public License v3.0
1.3k stars 23 forks source link

[FR] Export OPML for podcast app import #449

Open dozerman-ms opened 3 weeks ago

dozerman-ms commented 3 weeks ago

Describe the solution you'd like Export OPML file that points to Pinchflat source RSS feeds, allowing a podcast app to ingest all collected Pinchflat feeds.

Describe alternatives you've considered Individually adding each RSS feed by copying and pasting the URL of each one to my podcast app.

kieraneglin commented 2 weeks ago

Hey there! Thanks for the report (:

This is a good idea! I'll be blunt by saying it's a lower priority than some of the other things I'm working on right now, but I'll keep this open to track this feature going forward

dozerman-ms commented 2 weeks ago

In a stroke of serendipity, I started learning Elixir about a week ago. Just noticed PF is Elixir when I cloned the repo. I may make a PR later once I have a grip on things, assuming quality is up to par and everyone is okay with it. Looking to see how much effort it may take to get to that goal.

kieraneglin commented 2 weeks ago

That's great! Feel free to ask any questions about the tech/layout of things. I have a little blurb here on how to get yourself set up

My only advice off the top is that there would need to be some UI around how to choose which source is included in the OPML file. I'm not sure how to best do that or where to even put that UI (sources page? maybe in the settings page?). This is assuming that the OPML needs to be filtered down to only the sources you want before import - if it's common practice for podcast apps to let you pick and choose which feeds to import from the OPML then ignore me!

dozerman-ms commented 6 days ago

Hey lamarios. I've been having trouble getting things set up. If you're waiting to act because of me, just know it's going to be awhile.

kieraneglin commented 6 days ago

Let me know if there's anything I can help with!

dozerman-ms commented 6 days ago

I just re-tried. I was being dumb and didn't have docker-compose installed.

Where does pinchflat store the source's metadata? Is it config/db/pinchflat.db? Is that sqllite?

kieraneglin commented 6 days ago

That's all correct. Metadata for user consumption is stored on the sources table, metadata for the app's internal use is stored on the source_metadata table. Prefer to use the former unless there's a really good reason to use the latter

dozerman-ms commented 5 days ago

For future reference, the information that I was looking for was the "uuid" column in the "sources" table. This table should hold everything I need to build the OPML file's data.

dozerman-ms commented 1 day ago

I see in 'router.ex' that there is no shortage of endpoints. Is there an endpoint to get all UUIDs? I couldn't find anything that seemed to be. If not, how might I go about creating an endpoint to get (maybe json) of all source UUIDs?