mirror of
https://github.com/beetbox/beets.git
synced 2025-12-08 09:34:23 +01:00
bytstringify extra cover_names in fetchart
This commit is contained in:
parent
7dcf160d0b
commit
1c761c60fb
1 changed files with 3 additions and 2 deletions
|
|
@ -595,8 +595,9 @@ class FileSystem(LocalArtSource):
|
|||
paths = extra['paths']
|
||||
if not paths:
|
||||
return
|
||||
cover_names = extra['cover_names']
|
||||
cover_pat = br"(\b|_)({0})(\b|_)".format(b'|'.join(cover_names))
|
||||
cover_names = list(map(util.bytestring_path, extra['cover_names']))
|
||||
cover_names_str = b'|'.join(cover_names)
|
||||
cover_pat = br''.join([br"(\b|_)(", cover_names_str, br")(\b|_)"])
|
||||
cautious = extra['cautious']
|
||||
|
||||
for path in paths:
|
||||
|
|
|
|||
Loading…
Reference in a new issue