mirror of
https://github.com/jpochyla/psst.git
synced 2026-04-27 07:25:52 +03:00
[PR #495] [MERGED] Cache album art #565
Labels
No labels
api
bug
build
documentation
duplicate
enhancement
good first issue
help wanted
idea
invalid
linux
lowprio
macos
pull-request
upstream
windows
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/psst#565
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/jpochyla/psst/pull/495
Author: @jacksongoode
Created: 7/9/2024
Status: ✅ Merged
Merged: 7/11/2024
Merged by: @Insprill
Base:
master← Head:jackson/cache-album-art📝 Commits (2)
846c5e1Cache album art (first pass)4ca368bSmall linting issue📊 Changes
2 files changed (+40 additions, -0 deletions)
View changed files
📝
psst-gui/src/webapi/cache.rs(+27 -0)📝
psst-gui/src/webapi/client.rs(+13 -0)📄 Description
Currently, this stores the album art work by hashed URI.
Ideally, we would be storing and retrieving the album art by the album ID. However, that would mean modifying the function in a way that I think would warrant its own PR. With that extension, we would only need to download album artwork for each album rather than album art for each track, which is happening now.
I think the increase in cache size is negligible here, given that each album cover as a small thumbnail is about 2-6kb and has a large thumbnail about ~40kb.
This will reduce the number of requests, improve responsiveness and CPU likely.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
open.spotify.complaylist URLs not working in search bar #598