-
-
Notifications
You must be signed in to change notification settings - Fork 290
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: Fix Jellyseerr Avatar Loading Issue #2197
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi 👋. Thank you for making your first contribution to Homarr. Please ensure that you've completed all the points in the TODO checklist. We'll review your changes shortly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I dislike sending a retry request to a differnt URL.
Since this change was implemeted after a specific version, we should instead fetch the version and use the other URL if this version is above a specific threshold.
Yes I agree with you, I'm checking the Jellyseerr API docs to implement getting the version number. |
Thank you, please tag me again for another review once you implemented my comment |
I tried using the version comparison method, requesting
|
There is no way to perfectly reproduce the problem of version fetching errors, so I chose to set the default value of I've also tested that the program works fine when Jellyseerr connectivity is fine but
|
This looks like a lot of pain for not much. |
It seems I don't have a good way to detect that one of the links is unavailable |
Don't test availability and don't test connectivity then. Also, if people are updating Homarr, chances are they are updating other containers as well, so why are we even trying to have multiple options? Unless jellyseerr is in a beta (like we had with sonarr a while back iirc), then just update the link. |
This method is great and I'm testing it to make sure it works! |
I just got a report on discord that Jellyseerr's new update fixed it all already, I'm guessing this was actually not done on purpose. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll be honest, at first I was actually suggesting to only use the image element and remove the Avatar completely, but I think it's actually a good idea to keep it as a wrapper. Great job there.
The only thing left would be to remove the duplication of the functions, since that defeats the purpose of functions, but other than that it looks good to me.
Thanks for your patience and your contribution :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Category
Overview
Issue