Fixed error when no temporary album art present
This commit is contained in:
@ -366,13 +366,11 @@ class Player:
|
|||||||
return 1/(x+1)**2
|
return 1/(x+1)**2
|
||||||
|
|
||||||
|
|
||||||
# Init thief
|
# Init thief and get palette
|
||||||
color_thief = ColorThief(self.album_art_loc)
|
|
||||||
|
|
||||||
# Get palette
|
|
||||||
try:
|
try:
|
||||||
|
color_thief = ColorThief(self.album_art_loc)
|
||||||
palette = color_thief.get_palette(color_count=COLOR_COUNT, quality=100)
|
palette = color_thief.get_palette(color_count=COLOR_COUNT, quality=100)
|
||||||
except OSError:
|
except (OSError, FileNotFoundError):
|
||||||
self.color_update_needed = True
|
self.color_update_needed = True
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user