pipes-digital / pipes

Repository for Pipes
https://pipes.digital
GNU Affero General Public License v3.0
261 stars 21 forks source link

Inverse Filter #3

Closed agude closed 7 years ago

agude commented 7 years ago

Many of the sites I read put their podcast announcements on the same feeds as their articles. I'd love to be able to build something that says "Remove any post that matches..." to remove these! Sort of a block that inverts the current "Keep any post that matches..." provided by Filter.

onli commented 7 years ago

Hi Thanks for the suggestion. I agree, that would be a nice feature. It is now on the roadmap.

onli commented 7 years ago

The filter block now has a checkbox to activate that behaviour. When toggled, the filter block will not show found items, but instead remove them.

You can also now give it a regular expression. That's optional, it still works also with just a keyword. But a regular expression might make filtering for podcast announcements easier.

agude commented 7 years ago

I added the block to my pipes, but it doesn't look like the "status" of the check box is saved. I made a "[Pp]odcast" filter with the box checked (to reject) and saved. However now I'm only getting podcast items, and the box is unchecked again when I load the pipes back up.

I'm using Chrome Version 58.0.3029.96 (64-bit) on Linux. I'll give Firefox a shot too.

Edit: Same issue with Firefox.

onli commented 7 years ago

Oh, yes, that was a bug when loading the pipe for the editor. Could you please try again now? It might be necessary to reload the site a few times to make sure the javascript is not served from your browser cache

agude commented 7 years ago

Looks like it is working now! Thanks.