A partial archive of meta.discourse.org as of Tuesday July 18, 2017.

Imdb embeds broken on other sites

Alankrit_Choudh

Over here the embeds are working fine . for example you can see the image of the imdb link


But here
@ try.discourse


Also i am getting the same problem on my site

codinghorror

IMDB is blocking people from getting images by referrer most likely. I see the image working, but then after I refresh the page, broken. @techapj can you have a look? Last time I checked IMDB was pretty strict about allowing any of this.. but maybe they support opengraph or oembed by now.

Alankrit_Choudh

Could there be a fix for this or it's going to be that way since IMDB is strict with their policy?

codinghorror

Could be either, IMDb is quite strict, @techAPJ will check into it.

techAPJ

I am unable to repro the IMDb broken image issue here on meta, try or locally.. :confused:

Yes, IMDb does support Open Graph which is what we are using for extracting image and other metadata.

Alankrit_Choudh

IMDB embeds are still broken as of now :frowning:

Alankrit_Choudh

@techAPJ a fix is possible sir ?

codinghorror

He could not repro the problem.

Alankrit_Choudh

I am not sure if the issue is fixed or not but its working fine for me.

PS- i recently added a SSL certificate to my forum , without https the imdb image was broken but with https://mysite.com i am getting the image perfectly.

sebastianh

Also broken on one of my discourses... could there be a fallback solution (displaying a generic imdb logo instead)?

techAPJ

I can repro this issue on try.discourse.org, added on my list.

techAPJ

Hmm, I have been looking into this issue for a while and I can't figure out a way to bypass IMDb referer limitation.

This Stack Overflow answer best describe this issue: http://stackoverflow.com/a/3154630

Any suggestion(s) for fixing this issue is most welcome.

codinghorror

You might try emailing them and ask if they ever plan to support OpenGraph or oEmbed to get an official answer Arpit.

rriemann

Images from imdb are loading as long as I am on https. Otherwise, I get a 403 forbidden status code for the embedded image request.

ccdw

I've done quite a bit of IMDB (and Rotten Tomato) test embeds recently on Discourse.org and Try and I noticed that IMDB shows broken images sometimes but on other occasions is just fine. And by that I mean with the same embed - it's as if something was changing IMDB's end. It was this inconsistency that made me check out Rotten Tomatoes which works well.

Either way I don't think either embed looks particularly nice - leading me to think that for now, an image embed followed or preceded by a text copy and paste might work better. Although I guess there maybe copyright issues doing it that way.

rriemann

Wouldn't it be preferable then to just write a custom OneBox even though oembed is supported? However, this solution might only improve the layout/design. It doesn't help to fix images.

Did you encounter issues during your tests with Discourse on https?

ccdw

Perhaps, although I can't see myself writing or modifying plugins anytime soon.

As an aside I do like the way iFramely handles embeds and note that NodeBB supports iFramely accounts.

No, all plain Jane http.

rriemann

As an aside I do like the way iFramely handles embeds and note that NodeBB supports iFramely accounts.

Going for iFramely is like out-sourcing the integrated OneBox API to a paid service. I don't like that. :expressionless:

ccdw

Then you have what you want already.

clay

Looks like these are still broken on some sites. I just rebaked the linked post and the images still don’t appear (@codinghorror). Does it have to do with a CDN perhaps? They seem to work here…