-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using HedgeDoc to help generate RSS (Podcasting 2.0) #523
Comments
Some more convo around it in matrix:
|
Also, BTW I created a quick postman collection (folder) + environment (environment variables) of the Hedgedoc API. https://www.postman.com/elreydetoda/workspace/jb-apis/ From a minimum PoC (Proof of Concept) perspective this can work, we'd pull in the markdown via download request. From there we'd parse it based on the frontmatter/deliminator, which is still up for conversation around. (also, just FYI) Postman is a tool developers can use to create an share API. An API the mechanism we can interact with Hedgedoc from an automated perspective via scripts. (typically you can do so via curl as well, as an example) If you want to test this out, you can pretty quickly spin up a Hedgedoc PikaPod which will only bill you for how much time you use and IIRC gives you a $15 initial credit. (I talk about them on my blog if you want to know more) It's how I did my research for this issue. |
Feature Description
Based on my comment in Matrix:
Summary
I wanted to see if it was possible to use HedgeDoc's API (the current JB note platform) to grab the JB show notes and then we can parse the markdown file to generate the RSS feed from that document.
Details
So, it would act just like the scrapper to where it's an automated process in the GH repo, but could be manually invoked (via GUI or API). This process would just be yet another way to push data to the repo so we can deploy episodes (we'll have to figure out about the scrapper collisions)
IIRC, JB uses Hedgedoc and it looks like they have an API. So there could be a single note and maybe that note has the ID or link to the show which needs to be publish + a date/time it need to be published by. This would help control which episode is getting released and making sure it's not getting published too early. This also helps with the not disclosing information on a public repo too early, because you don't have anything you need to do 🙃
Small Security Side-note
There is technically an attack vector here for someone who has write access to the repo and trying to pull other notes from the Hedge doc instance, but we already have that with the SSH key to a JB server. (BTW as we expand the JB website's reach into the JB infra this is going to be more important, and I would be happy to help set it up with you and the team - this will help prevent the attack because people with write vs people who can approve can be different)
The text was updated successfully, but these errors were encountered: