Can we get this to filter Description as well as Title and Body?
![]() ![]() |
I'd like to be able to filter descriptions. Skyrimnexus.com has a feed that shows all new mods that are uploaded, but there are a few categories I don't want to see in the feed. Being able to filter by description would be perfect for this. |
![]() ![]() |
Could you get me the feed address as well as describe more part that you'd like to filter? maybe w/ a screenshot? yuriys AT gmail.com |
![]() ![]() |
I looked at the Reader code and the part I'm trying to filter is the "snippet". I altered your code to be able to filter by snippet (thanks for making your code so readable!). I added these lines: Line 320:
Line 379:
Line 393 - 397:
The feed I was trying to filter is http://www.skyrimnexus.com/rss/latestfiles.php. As you can see in the feed, there is a "Description" tag and this appears in the "snippet" line of the feed in Google Reader. For instance, you might see "Skyrim > Armor" as a snippet next to the title (when usually a snippet of the body shows up there instead). I wanted to filter out certain types. The code change I made seems to do this. Thanks for the great filter! I like it much better than the other one that's been around for a few years. |
![]() ![]() |
Alright, I updated the filter. The way it works now is that any body() filter also applies to snippets. |
![]() ![]() |
Thanks for updating, but I think I'll continue using my edited version. By making the body search snippets too, it filters too much in some cases. In the feed I'm filtering, for instance, I want to filter out anything in the "visuals" category (which only shows up in snippets) but don't necessarily want to filter out everything that has the word "visuals" in it. |


