mirror of
git://github.com/kovidgoyal/calibre.git
synced 2025-12-31 00:35:41 +01:00
Fix bug that caused automatic news removal to remove any book that has a tag that contains the word 'news' instead of only books that have the tag News
This commit is contained in:
parent
bf2b051aa0
commit
2ea905dffd
1 changed files with 1 additions and 1 deletions
|
|
@ -1373,7 +1373,7 @@ def tags_older_than(self, tag, delta):
|
|||
if r is not None:
|
||||
if (now - r[self.FIELD_MAP['timestamp']]) > delta:
|
||||
tags = r[self.FIELD_MAP['tags']]
|
||||
if tags and tag in tags.lower():
|
||||
if tags and tag in tags.lower().split(','):
|
||||
yield r[self.FIELD_MAP['id']]
|
||||
|
||||
def get_next_series_num_for(self, series):
|
||||
|
|
|
|||
Loading…
Reference in a new issue