Custom template for each feed #58

Closed
opened 2025-11-16 11:29:48 +00:00 by Sebastian_Berlin · 5 comments
Sebastian_Berlin commented 2025-11-16 11:29:48 +00:00 (Migrated from codeberg.org)

Hi, is that already possible or is there a chance to add this to your great tool?

An individual template for every feed

Examples for rss feeds:
a) News 1: Only the {content_plaintext} + {link} (because the title is already visible in the linked post and could be redundant)
b) YouTube Video: Only the {title} + {link} (because the description is often full of trash; contains ads and many links)
c) News 2: similar to a) but also with {author} (because that one newspaper supports this tag; the others not)

That would be awesome.

Hi, is that already possible or is there a chance to add this to your great tool? **An individual template for every feed** Examples for rss feeds: a) News 1: Only the `{content_plaintext}` + `{link}` (because the title is already visible in the linked post and could be redundant) b) YouTube Video: Only the `{title}` + `{link}` (because the description is often full of trash; contains ads and many links) c) News 2: similar to a) but also with `{author}` (because that one newspaper supports this tag; the others not) That would be awesome.
marvin8 commented 2025-11-16 23:36:19 +00:00 (Migrated from codeberg.org)

Yeah, that doesn't sound too involved. I'll put that onto the list of things to do for a future release.

At this point I am thinking of leaving the global template config and allow an optional template config per feed. If a feed has no individual template configured the global template will be used.

Does that sound like what you are after?

Yeah, that doesn't sound too involved. I'll put that onto the list of things to do for a future release. At this point I am thinking of leaving the global template config and allow an optional template config per feed. If a feed has no individual template configured the global template will be used. Does that sound like what you are after?
MrClon commented 2025-11-17 06:53:30 +00:00 (Migrated from codeberg.org)

Sounds reasonable.

@Sebastian_Berlin as temporary solution you can run several instances of feed2fedi with one API key and one feed per instance

Sounds reasonable. @Sebastian_Berlin as temporary solution you can run several instances of feed2fedi with one API key and one feed per instance
Sebastian_Berlin commented 2025-11-17 07:00:17 +00:00 (Migrated from codeberg.org)

@MrClon wrote in https://codeberg.org/marvinsmastodontools/feed2fedi/issues/58#issuecomment-8315837:

Sounds reasonable.

@Sebastian_Berlin as temporary solution you can run several instances of feed2fedi with one API key and one feed per instance

Yes, but there are too many feeds. But thanks for the hint!

@MrClon wrote in https://codeberg.org/marvinsmastodontools/feed2fedi/issues/58#issuecomment-8315837: > Sounds reasonable. > > @Sebastian_Berlin as temporary solution you can run several instances of feed2fedi with one API key and one feed per instance Yes, but there are too many feeds. But thanks for the hint!
Sebastian_Berlin commented 2025-11-17 07:07:10 +00:00 (Migrated from codeberg.org)

@marvin8 wrote in https://codeberg.org/marvinsmastodontools/feed2fedi/issues/58#issuecomment-8310800:

Yeah, that doesn't sound too involved. I'll put that onto the list of things to do for a future release.

At this point I am thinking of leaving the global template config and allow an optional template config per feed. If a feed has no individual template configured the global template will be used.

Does that sound like what you are after?

Perfect! ☺️

Actually also other global settings could be overwritten by the feed options, not only the template. For example post_media because some feeds don't contain a media-url, some others do, but others have, but don't need to post an image beside the article. The visibility could sometimes be different to a feed.

But of course the template seems to me the most important one. I'm looking forward to it. 💫

@marvin8 wrote in https://codeberg.org/marvinsmastodontools/feed2fedi/issues/58#issuecomment-8310800: > Yeah, that doesn't sound too involved. I'll put that onto the list of things to do for a future release. > > At this point I am thinking of leaving the global template config and allow an optional template config per feed. If a feed has no individual template configured the global template will be used. > > Does that sound like what you are after? Perfect! ☺️ Actually also other global settings could be overwritten by the feed options, not only the template. For example `post_media` because some feeds don't contain a media-url, some others do, but others have, but don't need to post an image beside the article. The `visibility` could sometimes be different to a feed. But of course the template seems to me the most important one. I'm looking forward to it. 💫
marvin8 commented 2025-11-28 00:06:33 +00:00 (Migrated from codeberg.org)

Included in latest release 3.4.0

Included in latest release 3.4.0
Sign in to join this conversation.
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
marvin8/feed2fedi#58
No description provided.