Closed JimiC closed 7 years ago
So I dived into the code to figure out how the images are fetched.
I figured that all images are fetched from fanart.tv
with a fallback to thetvdb.com
.
Now, reading on how trakt.tv
gets its images, (and I chose Trakt because most of popcorn users use it), they use the following order:
So maybe we should consider following the same order. Thoughts?
Take the discussion to: https://github.com/popcorn-official/popcorn-api/issues/49
@ChrisAlderson This is #49.
Derp
It's related as it has to do with the source popcorn is fetching the poster for each title.
It looks like fanart.tv restricts traffic by region . Thumbnails stopped working for me recently ( only Anime tab thumbnails are working ). They only work (very slowly ) when I use an American proxy server .
I'm using the latest 64bit build from Jenkins , and I'm located in Syria .
Order of fallback for movies:
Order of fallback for shows:
1a8b8f3fccc4f73199137ca5615a743c6c48fa85
Just to clarify @ChrisAlderson comment.
Order of fallback for movies:
- tmdb
- omdb
- fanart.tv
Order of fallback for shows:
- tmdb
- tvdb
- fanart.tv
ordered list unordered list, top to bottom you get it.
@ChrisAlderson Just a suggestion to better handle the fallback. Currently the way the fallback is coded, the next provider is used only if the current provider is unreachable, and not if the image is not found.
Maybe you want to reconsider the logic of the fallback.
@JimiC Can you send PR ? i will need @ChrisAlderson to work on structure ASAP 🎱
@team-pct Sure I could do that.
Really Great that you are just Shy ! Don't be
@team-pct Will start working on it as soon as @ChrisAlderson PR gets merged.
@JimiC merged
@team-pct what branch was it merged into? At what commit?
I can't see the difference in behaviour on master
:(
https://github.com/popcorn-official/popcorn-api/pull/55 development
-> master
The commit is linked in @ChrisAlderson comment.
I see, thanks!
Was it supposed to resolve the problem I mentioned earlier at https://github.com/popcorn-official/popcorn-api/issues/49#issuecomment-259542451? I don't notice any changes. Does it work for you?
Actually it does. Anime images are fetched from Hummingbird, so if you still experience issues check that your machine isn't blocking it.
@JimiC you are right, I wasn't able to go to https://hummingbird.me/ without a VPN (I work from Russia).
The error in my browser (chrome) was:
This site can’t provide a secure connection hummingbird.me didn’t accept your login certificate, or your login certificate may have expired. Try contacting the system admin. ERR_BAD_SSL_CLIENT_AUTH_CERT
Is there a way to fix that except for a system-wide VPN?
Probably the certificate of Humminbird
your chrome is using has expired.
Clearing the SSL state might help.
@team-pct This is not an issue with popcorn-api
.
Thank you @JimiC
The issue is solved in the latest build .
Thank you .
@JimiC unfortunately clearing the chrome's SSLs did not help. But anyway this is PCT that I care about, not Chrome. I guess PCT must use system's SSL certificates, but my Mac KeyChain contains nothing out of order. What might be the issue here?
Beats me. Correct me if I'm wrong but I think PCT is using V8 engine (same as Chrome). So if you can make your Chrome browse to Hummingbird when PCT will too.
@JimiC AFAIU, it depends not on the js engine, but on the security policy. For some reason https://hummingbird.me/ requests an (optional) client SSL certificate, which (many?) computers do no have.
I believe a client may choose to ignore this and connect without a certificate. This is usually the case with Chrome, but not on my machine (OS X 10.11.6).
Maybe it is possible to make PCT ignore the security when fetching the thumbnails?
@voddan Unfortunately even trying to connect to http://hummingbird.me
redirects to https
. I don't believe that there is something more the team can do about it. I would really appreciated if @ChrisAlderson could give us his insight.
Problem: Turns out that thumbnail images are mostly fetched from
fanart
. Unfortunately this service has a slow response time.I have noticed that some images are trying to be fetched from
walter.trakt.us
and they fail because this service has been moved towalter.trakt.tv
.Solution: Consider switching the image fetching to https://walter.trakt.tv/