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:
Sumner Evans
2020-02-22 07:56:40 -07:00
parent cf1e6f0dff
commit 1de7ba6327
10 changed files with 28 additions and 30 deletions

View File

@@ -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))