Tiny Tiny RSS: Community

Configurable "Accept" header for individual feeds

First of all, thanks for TTRSS! I use it daily and it’s really great to be able to create my own (self-hosted) news feed! :slightly_smiling_face:

Lately I wanted to keep track of AdoptOpenJDK releases and found out that the URL https://github.com/AdoptOpenJDK/openjdk11-binaries/releases can return an atom feed if requested with the header Accept: application/atom+xml (source: https://github.com/AdoptOpenJDK/TSC/issues/33#issuecomment-455513173). But I couldn’t find any possibility to add an accept header like this when configuring a feed in TTRSS.

I found the tip to create a wrapper in https://community.tt-rss.org/t/fetch-file-contents-specify-custom-header/207 but I can’t make head or tails of that. Is there a plugin or at least some code fragments I could use to create a plugin for inserting a special Accept header? It doesn’t have to be pretty. I’d be thankful for any hints!

Regards
Mathis

I don’t have a clue for what you’re asking, but about grabbing Github releases through a xml feed, you can just add .atom at the end of the url:
https://github.com/AdoptOpenJDK/openjdk11-binaries/releases.atom

Cheers