1
0
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:
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 = []
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