Suggestion: custom feed tags #64
Labels
No labels
bug
contribution welcome
duplicate
enhancement
good first issue
help wanted
invalid
question
upstream
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Reference
marvin8/feed2fedi#64
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In rare cases choosing a custom and/or non-standard tag of a feed is required.
Example: A media library of public broadcasters in Germany uses for
<link>the url to the mp4 media file. That's in general nice, but Mastodon etc. won't embed this as a video. Instead it's just the plain url (like here) without any preview picture (like with in an article) or playing-options (like in an embedded youtube-video).But the feed (see link in the first paragraph) has luckily for every
<item>the custom tag<websiteUrl>(like here), which is a link to the media page, where you can play the film. It would be a better alternative to the media file url in<link>, because in that situation Mastodon etc. handles the link like a normal article and it shows the title, teaser and a thumbnail.That's just one of many examples where using a custom and non-default tag is necessary or at least more practical for a specific feed. Maybe you could take a look to build such feature.
I had a look at the two feeds you listed and I can't see a difference. Can you double check that the feed url
A media library of public broadcasters in Germanyin the second paragraph and that the feedthis feedin the third paragraph are actually different?It's the same feed, where every
<item>has a<link>and a<websiteUrl>. (I updated the 1st sentence of the 3rd paragraph to make it more clear.)Ok... I think I understand know. Let me have a look at this and I'll get back to you.
Thank you!
btw: Please take care that sometimes there are (even standard) tags, which are arrays and no simple strings.
Often used in categories, for example:
OR only
It will be tricky, even though arrays aren't often used, especially for custom tags.
@Sebastian_Berlin I finally got around to having a crack at this. Just FYI I had an LLM agent (deepseek) help with this.
If you have a chance, have a look at PR #72 and give any feedback.
Awesome, thanks a lot! I look forward to the next release to check this. :)
Now implemented in release 3.5.0