lib/kramdown/parser/bean_kramdown/oembed.rb in ems-0.1.1 vs lib/kramdown/parser/bean_kramdown/oembed.rb in ems-0.1.2
- old
+ new
@@ -57,10 +57,10 @@
# This helper methods adds the approriate attributes to the element +el+ of type +a+ or +img+
# and the element itself to the @tree.
def add_oembed(el, href, title, alt_text = nil)
providers = {
- :twitter => "https://api.twitter.com/1/statuses/oembed.json?url=%s",
+ :twitter => "https://api.twitter.com/1/statuses/oembed.json?url=%s&lang=en",
:youtube => "http://www.youtube.com/oembed?url=%s&format=json&maxwidth=550",
:flickr => "http://flickr.com/services/oembed?url=%s&maxwidth=460&format=json&maxwidth=550",
:vidler => "http://lab.viddler.com/services/oembed/?url=%s&type=simple&format=json",
:qik => "http://qik.com/api/oembed.json?url=%s&maxwidth=550",
:revision3 => "http://revision3.com/api/oembed/?url=%s&format=json&maxwidth=550",