mirror of
https://github.com/spl0k/supysonic.git
synced 2024-11-09 19:52:16 +00:00
Cover art discovery: handle badly encoded files
This commit is contained in:
parent
405a26a20a
commit
b43a70a045
@ -64,7 +64,11 @@ def find_cover_in_folder(path, album_name = None):
|
||||
|
||||
candidates = []
|
||||
for f in os.listdir(path):
|
||||
file_path = os.path.join(path, f)
|
||||
try:
|
||||
file_path = os.path.join(path, f)
|
||||
except UnicodeError:
|
||||
continue
|
||||
|
||||
if not is_valid_cover(file_path):
|
||||
continue
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user