fixed handling empty tags in TXT file

This commit is contained in:
2023-08-27 18:07:38 +02:00
parent 7f91a2b567
commit 169f1bb458
3 changed files with 19 additions and 0 deletions
+2
View File
@@ -124,6 +124,8 @@ class TagLine(str):
filtered based on prefix or contained string.
"""
tagstr = self[len(self.prefix):].strip()
if tagstr == '':
return set() # no tags, only prefix
separator = Tag.default_separator
# look for alternative separators and use the first one found
# -> we don't support different separators in the same TagLine