1
0
mirror of https://github.com/spl0k/supysonic.git synced 2024-12-23 01:16:18 +00:00

Cover art discovery: handle badly encoded files

This commit is contained in:
spl0k 2018-05-21 16:37:21 +02:00
parent 405a26a20a
commit b43a70a045

View File

@ -64,7 +64,11 @@ def find_cover_in_folder(path, album_name = None):
candidates = [] candidates = []
for f in os.listdir(path): for f in os.listdir(path):
try:
file_path = os.path.join(path, f) file_path = os.path.join(path, f)
except UnicodeError:
continue
if not is_valid_cover(file_path): if not is_valid_cover(file_path):
continue continue