fix(audiobook_library): discard short matches for authors
This commit is contained in:
1 parent
7cc16fb619
commit
39cc050f97
1 file changed
+4
@@ -599,6 +599,10 @@ class Audiobook:
|
||||
if not m:
|
||||
logger.trace(f"No artist found in comment for {self.bookPath}")
|
||||
return
|
||||
if len(m.group(1).strip()) < 5:
|
||||
logger.debug(f"Match group {m.group(1)} found but discarded")
|
||||
return
|
||||
logger.trace(f"Match groups: {m.group()}, Book: {self.name}")
|
||||
self.changed = True
|
||||
artist = re.sub(r"\s*\([^)]*\)", "", m.group(1).strip()).strip()
|
||||
logger.trace(f"Remove {artist} from comment: {self.comment}")
|
||||
|
||||
Reference in new issue
Block a user