Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix failing album cover requests #15

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

Senyksia
Copy link

@Senyksia Senyksia commented Dec 3, 2024

Fixes #14 by breaking out album cover fetching from activity updating, only fetching covers during a zone change, and ensuring PreviousAlbumArt.imageKey is updated when a request fails.

Improves the Discogs API call, by targeting the currently playing album and narrowing via artist+track, rather than targeting the isolated track. This is more consistent at returning the expected cover, avoiding erroneous singles, etc. We also do some basic cleaning of the (woefully inadequate) three_line data before sending it to Discogs.

Fixes jtpox#14
Some conditionals moved to switches to improve clarity.
Target albums instead, and strip out extraneous artists.
- Fixed returning an empty string when the ' (feat.' substring was not
found.
- Fixed `album` not being stripped, sometimes causing an album/track mismatch.
- Narrow search slightly when additional artists are provided by Roon.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Discogs and Imgur requests sent every second while request failing
1 participant