-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Filter include/exclude #103
Comments
Not sure what you mean exactly; however, the filters apply to feeds, not to the source (like YT). Pls, explain your use case (better with some config example) and give me more details about what exactly you are trying to filter out and what you meant by "include" |
I have really huge feed from local radio broadcaster https://nv.ua/rss/podcasts/viyna-v-ukraini.xml |
Well, we do have an example, see https://github.com/umputun/feed-master/blob/master/_example/etc/fm.yml#L86 Generally, the filter is to exclude things, not to include them. I.e. filter doesn't act as "gimme those items only", but rather "gimme all the items except some". However, you can try some reversed/inverted regex, like Alternatively, the small change in the code (adding configuration parameter "inversed" or smth like this) and using it to flip result of the check in this function can be much easier way to achive the desired result. Feel free to subimt a PR for this or ping the author of the original implementation of regex filters |
Yes. I see these examples. But I thought I miss include filter. |
I have added the "invert" parameter to the filter. In your case, it will look like this: filter:
title: (Фурса|Сич|Михайлов|Шабунін|Горєвой|Портников|Яковина|Тимошенко|Денисенко)
invert: true pls test it and let me know. You need to use :master docker image for those tests |
I updated master image. And Invert still don't work |
pls show the first line it prints to the log (with version info) and the filter part of your config |
|
confused. your output actually indicates the entry as properly filtered.
Those filtered suckers stored to the internal db with a special "junk" flag and this is why you see the next message "save ...". However, they not populated to the feed, or at least they not supposed to. Do you actually see them in the result feed? |
I see that I put not inverted filter log. Right now I put correct one
|
reproduced the issue and it should be fixed by now. |
Works as indeed. Thanks a lot |
Is this possible to get filter to include/exclude filter to RSS feed same like for YT feed?
The text was updated successfully, but these errors were encountered: