Replies: 17 comments 15 replies
-
I came here looking for exactly this feature. In my case, I want to follow a local news source, but the majority of the articles are about sport. I would like to be able to filter out anything with '/sport/' in the url. |
Beta Was this translation helpful? Give feedback.
-
This would be a very valuable feature for journalists! |
Beta Was this translation helpful? Give feedback.
-
@svoop How many regexps do you think would be common for a feed? This could get rather long rather quickly! @Grotax @SMillerDev could you add a design label to this ticket? |
Beta Was this translation helpful? Give feedback.
-
@ei8fdb From a UI perspective, multiple regexps are quite a bit more difficult and I don't see much benefit from it. |
Beta Was this translation helpful? Give feedback.
-
Agreed, hence why I asked. Where do you suggest the user create those filters? |
Beta Was this translation helpful? Give feedback.
-
I guess there are two possible places: Two additional inputs (denypattern, allowpattern) when adding a new subscription. However, I'd recommend not to, because regexp are a power user feature and it would only confuse the average user – specially since there is little to no space for explanations. An additional context menu point "Filter" which opens an overlay which contains explanations and the inputs to add/edit the denypattern and allowpattern regexp. The explanation could be something along the lines:
The expressions here are examples best added as The term "regular expression" could be linked to something like https://www.petefreitag.com/cheatsheets/regex/ – there might be better, it's just what popped up on a quick Google seach. |
Beta Was this translation helpful? Give feedback.
-
Maybe this can get be implemented in a few iterations. The minimal viable feature set doesn't need regex, or allow/block states. I think just setting a filter to block everything which matches Such kind of filter already was for example powerful enough for example to block ads like "Heise+" or "Advertisment: " and so on. |
Beta Was this translation helpful? Give feedback.
-
@stefan-niedermann Will the filtering rather be done in SQL on the database (after reading/parsing the RSS feed) or in PHP while reading/parsing the RSS feed? |
Beta Was this translation helpful? Give feedback.
-
@svoop i am no developer or maintainer of this app, i am a plain user and suggested a more minimal approach for the sake of a quick implementation 😉 😇 |
Beta Was this translation helpful? Give feedback.
-
Is there any commercial or open source feed reader that offers something likes this? I think filtering during parsing might be a bit too much for feed parser especially since the feed parsing is a heavy task and there is no parallel job we want to keep it as slim as possible. So filtering could be either done on the API level or by the clients. |
Beta Was this translation helpful? Give feedback.
-
@Grotax AntennaPod has a similar mechanism on a per-feed basis. If an episode matches some pattern, you can use that to include or exclude an episode from autodownload |
Beta Was this translation helpful? Give feedback.
-
It would be really useful having "filters" for feeds. Following example: The Gitlab Blog https://about.gitlab.com/blog/ For example I am just interested in Releases. On the website I simply can choose the category "releases" on the left. However the website only provides one feed stream: https://about.gitlab.com/atom.xml In this stream are all messages contained. It would be really helpful if in the Nextcloud News app it would be possible to filter either title or content by search words. A simple "contains string" filter would suffice for the beginning. A regex filter would be more flexible - and maybe not harder to implement. |
Beta Was this translation helpful? Give feedback.
-
Just wanted to keep this idea going. |
Beta Was this translation helpful? Give feedback.
-
The Cloudflare blog includes tags in the form of multiple |
Beta Was this translation helpful? Give feedback.
-
Some of the above requirements are handled by a small Python script which uses the News API. It can apply regular expressions to body and title and check for the age of a post, and if all defined filters match, a post is marked as read. More information is in the readme file in the repository: https://github.com/mathisdt/nextcloud-news-filter |
Beta Was this translation helpful? Give feedback.
-
Maybe for the UI instead of having a regex string could be something like:
|
Beta Was this translation helpful? Give feedback.
-
Is there any good way of doing this nowadays from the UI? Is there any plug-in for this? Is the python script above something that has to be run server-side every time I want to add a new filter? |
Beta Was this translation helpful? Give feedback.
-
Read and tick the following checkbox after you have created the issue or place an x inside the brackets ;)
Is your feature request related to a problem? Please describe.
Some feeds feature articles which are not interesting to the subscriber. For instance: I subscribe to a tech news feed which features articles on Android and iOS. However, since I don't have an iPhone, I'm not interested in the latter and would like to ignore such articles.
Describe the solution you'd like
A cascade of two regexp patterns might help: If the article subject matches the denypattern, it is ignored unless it also matches the allowpattern. Example:
/iOS|iPhone/i
/Android/i
Beta Was this translation helpful? Give feedback.
All reactions