@@ -889,12 +889,12 @@ def refresh_dir(self) -> Generator:
889
889
and "tagstudio_thumbs" not in f .parts
890
890
and not f .is_dir ()
891
891
):
892
- if f .suffix not in self .ext_list and self .is_exclude_list :
892
+ if f .suffix . lower () not in self .ext_list and self .is_exclude_list :
893
893
self .dir_file_count += 1
894
894
file = f .relative_to (self .library_dir )
895
895
if file not in self .filename_to_entry_id_map :
896
896
self .files_not_in_library .append (file )
897
- elif f .suffix in self .ext_list and not self .is_exclude_list :
897
+ elif f .suffix . lower () in self .ext_list and not self .is_exclude_list :
898
898
self .dir_file_count += 1
899
899
file = f .relative_to (self .library_dir )
900
900
try :
@@ -1382,7 +1382,7 @@ def search_library(
1382
1382
# non_entry_count = 0
1383
1383
# Iterate over all Entries =============================================================
1384
1384
for entry in self .entries :
1385
- allowed_ext : bool = entry .filename .suffix not in self .ext_list
1385
+ allowed_ext : bool = entry .filename .suffix . lower () not in self .ext_list
1386
1386
# try:
1387
1387
# entry: Entry = self.entries[self.file_to_library_index_map[self._source_filenames[i]]]
1388
1388
# print(f'{entry}')
@@ -1539,7 +1539,7 @@ def add_entry(entry: Entry):
1539
1539
else :
1540
1540
for entry in self .entries :
1541
1541
added = False
1542
- allowed_ext = entry .filename .suffix not in self .ext_list
1542
+ allowed_ext = entry .filename .suffix . lower () not in self .ext_list
1543
1543
if allowed_ext == self .is_exclude_list :
1544
1544
for f in entry .fields :
1545
1545
if self .get_field_attr (f , "type" ) == "collation" :
0 commit comments