summaryrefslogtreecommitdiff
path: root/lib/oembedhelper.php
AgeCommit message (Collapse)Author
2010-11-15Add some basic oEmbed lookup test cases; fixed a bug in discovery fallback.Brion Vibber
2010-11-15Drop some debug linesBrion Vibber
2010-11-15Swap the Services_oEmbed wrapper in oEmbedHelper out for doing it ourselves...Brion Vibber
- workaround for providers that are skimpy on their data, such as missing width/height or thumbnail_width/thumbnail_height - workaround for YFrog listing "image" instead of "photo" type - generally more lax about formatting: if it comes back and looks kinda ok, we'll take it. - discovery uses system HTML parser, should be more robust if the links include things like ampersands with proper HTML-level escaping
2010-11-12Encapsulate the oEmbed -> oohembed fallback into oEmbedHelper class. Also ↵Brion Vibber
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.