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

Tweaked Discord album art implementation to make it more reliable. Closes #1136. #1137

Merged
merged 3 commits into from
May 19, 2024

Conversation

G2-Games
Copy link
Contributor

It now uses both release_group_id and release_id, which makes it significantly more reliable.

@G2-Games
Copy link
Contributor Author

Closes issue #1136

Copy link
Owner

@Taiko2k Taiko2k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure the caching mechanism still works as intended with this revision.

The goal is that we want to minimize any unnecessary repeated calls. Caching both results and failures. To this end I created the dicts pctl.album_mbid_cache and pctl.mbid_image_url_cache. These can be changed as needed, though your change has implications for how the former of the two works.

Could you revise the PR to ensure we don't make an API call with the same data twice. (within in the same session). You can revise the caching mechanism and associated variables as needed.

t_modules/t_main.py Show resolved Hide resolved
t_modules/t_main.py Show resolved Hide resolved
@G2-Games
Copy link
Contributor Author

Good points, I will revise my implementation

@G2-Games
Copy link
Contributor Author

That should fix the caching issues I think

@G2-Games G2-Games requested a review from Taiko2k May 18, 2024 21:25
@Taiko2k Taiko2k merged commit c6078ad into Taiko2k:master May 19, 2024
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.

None yet

2 participants