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:
parent
405a26a20a
commit
b43a70a045
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user