iamcal / oembed

The oEmbed Spec
http://oembed.com
MIT License
1.31k stars 643 forks source link

Cannot use short link of Flickr album #723

Open ioanaa20 opened 9 months ago

ioanaa20 commented 9 months ago

We noticed that the schema for short link of albums for Flick provider has different paths than the one specified here: https://oembed.com/providers.json

Can this schemes be updated with the needed pattern? The pattern looks like this https://flic.kr/s/*

Thank you!

iamcal commented 9 months ago

I don't work at Flickr and I don't have example URLs to see if they actually work. If you can provide examples of patterns that are supported, then I can make that update. Flickr's definition file is https://github.com/iamcal/oembed/blob/master/providers/flickr.yml

vever001 commented 9 months ago

This seems like a Flickr issue.

I also found this discussion in wordpress. So I assume Flickr would first needs to fix this, only then we can add the URL scheme in here. Not sure how we can report issues to Flickr.

pdokas commented 1 month ago

Hello! Thanks for this report. Turns out the Flickr oEmbed endpoint understood flic.kr URLs for photos but not for other types of URLs that can be represented with an oEmbed response.

A fix has just been deployed that basically makes it true that if Flickr can provide an oEmbed response for a flickr.com URL it can now also provide an oEmbed response for its matching flic.kr URL.

E.g.

  1. https://www.flickr.com/services/oembed/?format=json&url=https://flic.kr/s/aHBqjB47HN
  2. https://www.flickr.com/services/oembed/?format=json&url=https://www.flickr.com/photos/flickr/albums/72177720312835512/

Ditto galleries and other types too:

  1. https://www.flickr.com/services/oembed/?format=json&url=https://flic.kr/y/3NJtxNR
  2. https://www.flickr.com/services/oembed/?format=json&url=https://www.flickr.com/photos/flickr/galleries/72157722991312360/

Thanks for the report!