Improve the handling of cover art caches
Only download the cover art once at size=1000, then use that everywhere by scaling it down
This commit is contained in:
@@ -388,7 +388,7 @@ class MainWindow(Gtk.ApplicationWindow):
|
||||
util.esc(song.artist),
|
||||
)
|
||||
cover_art_future = CacheManager.get_cover_art_filename(
|
||||
song.coverArt, size=50)
|
||||
song.coverArt)
|
||||
self.song_results.add(
|
||||
self.create_search_result_row(
|
||||
label_text, 'song', song, cover_art_future))
|
||||
@@ -405,7 +405,7 @@ class MainWindow(Gtk.ApplicationWindow):
|
||||
util.esc(album.artist),
|
||||
)
|
||||
cover_art_future = CacheManager.get_cover_art_filename(
|
||||
album.coverArt, size=50)
|
||||
album.coverArt)
|
||||
self.album_results.add(
|
||||
self.create_search_result_row(
|
||||
label_text, 'album', album, cover_art_future))
|
||||
|
Reference in New Issue
Block a user