intanpalupidn / jquery-oembed

Automatically exported from code.google.com/p/jquery-oembed
0 stars 0 forks source link

Is there a way to detect if a URL is embedable? #4

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
For example, a flick single image

http://www.flickr.com/photos/14516334@N00/345009210/

can be used with oembed

but a photoset

http://www.flickr.com/photos/aussiegall/sets/72157620425840460/

can't.

Is there a way to detect if a URL will work (or did work)?

Regards
Oliver

Original issue reported on code.google.com by oliver.k...@gmail.com on 6 Sep 2009 at 11:50

GoogleCodeExporter commented 8 years ago
I think that detecting that a URL should be done using regular expressions, but 
I'm a 
novice with them.... may be someone can send a path so the provider uses 
regular 
expressions in the method 'matches' of an OEmbedProvider object. In that way 
$.fn.oembed.isAvailable(url) will return true only if oEmbed can be used for a 
resource.

I won't fix that for the moment.

Original comment by rchamo...@gmail.com on 1 Oct 2009 at 3:45