]> git.mxchange.org Git - quix0rs-gnu-social.git/commit
Encapsulate the oEmbed -> oohembed fallback into oEmbedHelper class. Also added a...
authorBrion Vibber <brion@status.net>
Sat, 13 Nov 2010 01:41:35 +0000 (17:41 -0800)
committerBrion Vibber <brion@status.net>
Sat, 13 Nov 2010 01:41:35 +0000 (17:41 -0800)
commit4f323efdf7abc5452152a87241e320aca20ce486
tree7a8a2abd48469ac068cee78bbd02fc0690ba003d
parent398e622fecdb2b2b6bf6cde975e3978284db62b4
Encapsulate the oEmbed -> oohembed fallback into oEmbedHelper class. Also added a chance to whitelist sites that don't show discovery info but do have oEmbed API endpoints, and to provide alternate APIs for some common services.

Newly supported:
- TwitPic: added a local function using TwitPic's API, since the oohembed implementation for TwitPic produced invalid output which Services_oEmbed rejects. (bug filed upstream)

Tweaked...
- Flickr: works, now using whitelist to use their endpoint directly instead of going through oohembed
- Youtube: worked around a bug in Services_oEmbed which broke the direct use of API discovery info, so we don't have to use oohembed.

Not currently working...
- YFrog: whitelisting their endpoint directly as the oohembed output is broken, but this doesn't appear to work currently as I think things are confused by YFrog's servers giving a '204 No Content' response on our HEAD checks on the original link.
classes/File_oembed.php
lib/oembedhelper.php [new file with mode: 0644]