-
-
Notifications
You must be signed in to change notification settings - Fork 11
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
Dynamic Movie/Show Images from TMDB #43
Conversation
Kinda awkward to have two same PR (#42) 😅 |
Duplicate of #42 |
Yeah I know lol |
Side note: Have you even checked existing PRs before making yours? It's like reinventing the wheel 😅 |
I did actually. Submitted it anyway. :3 Edit: The reason I submitted mine is because I think it's better in some ways. You can check the code yourself. No extra dependencies, Readme updated and actually faster. |
Sorry for the absence, it seems I wasn't properly notified about both PRs. While you're here @DareFox (since @xBiei already voiced their opinion), do you believe one has advantages over the other? Side note: I actually also tried to fix #25, but I was using IMDB which for some reasons was causing some issues, which I never got around to. Eventually, I just pushed everything I had locally as I was switching computers, and then never got around to continuing the work. So again, thanks for your contributions! |
@xBiei @DareFox The way I see it, there are two clear distinctions between the two PRs. The advantage to @DareFox's PR I suppose is a two way sword. Because it uses tmdb crate which makes the code cleaner, however we are adding a dependency for just two URLs. This PR has caching for the image links, which I think is a great advantage, doesn't use any additional crates So, in the end, I think I will close #42, and move forward with this one. What I would improve on would be to also have a "disposable" tmdb token for quick usage, what do you think? I still need to further test this implementation however, especially to test the situations where the image is not found. Note: There are some clippy annotations that I would also fix. |
Yeah I agree, that would be good for the UX.
If there's no url response, it'll use the media's type as url which discord fetches from the uploaded images to the app in their portal.
I'll check that out later |
Yes, that would be a good idea alongside built-in client IDs for Trakt and Discord (#46) |
I agree, dependency just for url fetch is kinda ambigous and this PR is better. Also caching could save potential problem with burner token limit usage
It would be very cool, it will make less hassle with configuration Also, I have one question with this PR (I can't test rn, because my setup is borked): Is poster cropped or has original size? |
Yeah I noticed it is cropped and kinda blurry. |
Co-authored-by: Afonso Jorge Ramos <afonsojorgeramos@gmail.com>
Looks like I got too busy and forgot about this lol. |
Thanks! |
📑 Description
Well, because I hate the trakt logo and the other 2 logos for shows and movies because they look ugly and unrelated to whatever I'm watching, and discord now accepts urls in RPC images I figured we should use TMDB resources to improve the quality of this app.
Also, other than being able to use dynamic images, this PR won't change the dependencies at all.
And of course, if the app failed to use dynamic images, it'll fallback to the old ones.
Closes #25
✅ Checks