Browse Source

Merge branch 'filter-by-tags' into 'master'

Added ability to filter entries by tag

Closes #26

See merge request chaica/feed2toot!11
merge-requests/11/merge
Matthew Lorentz 10 months ago
parent
commit
0f27bb6456
  1. 2
      feed2toot/filterentry.py

2
feed2toot/filterentry.py

@ -67,7 +67,7 @@ class FilterEntry:
# not case sensitive, so we compare the lower case
for pattern in self.options['patterns'][patternlist]:
finalpattern = pattern.lower()
finaltitle = self.entry[patternlist.split('_')[0]].lower()
finaltitle = str(self.entry[patternlist.split('_')[0]]).lower()
if finalpattern in finaltitle:
self.matching[i] = self.entry[i]
else:

Loading…
Cancel
Save