View Single Post
Old 08-20-2024, 07:41 AM   #501
chaley
Grand Sorcerer
chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.chaley ought to be getting tired of karma fortunes by now.
 
Posts: 12,486
Karma: 8025704
Join Date: Jan 2010
Location: Notts, England
Device: Kobo Libra 2
Quote:
Originally Posted by thiago.eec View Post
Version 1.6.3 - 20 Aug 2024

- Bug fix: use a case sensitive match for genres, since that's how calibre's tags work
Where does calibre do case sensitive matching for tags, either custom or standard? It shouldn't. AFAIK one cannot have two tags in a library that differ only in case. For example, given
Code:
s = some_string.lower()
for t in tags:
    if s == t.lower():
        print('foo')
it should be impossible to print more than one line.

Another example:
Code:
set1 = db.all_tags() #made up function
set2 = set()
for t in set1:
    set2.add(t.lower())
len(set1) will always equal len(set2)
chaley is offline   Reply With Quote