From 3db03015f176de347512aa0b328cc1e1376da7a6 Mon Sep 17 00:00:00 2001 From: crunk Date: Sun, 23 May 2021 22:46:30 +0200 Subject: [PATCH] small fix for book recommendations --- library/rnrfeed/rnrfeeder.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/rnrfeed/rnrfeeder.py b/library/rnrfeed/rnrfeeder.py index c393281..ad09c0e 100644 --- a/library/rnrfeed/rnrfeeder.py +++ b/library/rnrfeed/rnrfeeder.py @@ -34,7 +34,7 @@ def rabbithole(entry): fieldsofinterest = getfieldsofinterest() categories = [t.get('term') for t in entry.tags] for id, fields in fieldsofinterest.items(): - if [f for f in fields if(f.strip() in categories)]: + if [f for f in fields if(f.lower().strip() in categories.lower())]: # print("book found") publicationinfo = getfullpublication(id) fulltitle = "{0} - {1}".format(