Commit 2f56bd98 authored by vinmassaro's avatar vinmassaro
Browse files

Add format parameter to oEmbed endpoint to force JSON response.

parent 2f4b2cc8
......@@ -199,7 +199,7 @@ class SoundCloudDefaultFormatter extends FormatterBase {
}
// Create the URL.
$oembed_url = $oembed_endpoint . '?iframe=true&url=' . ($encoded_url);
$oembed_url = $oembed_endpoint . '?iframe=true&format=json&url=' . ($encoded_url);
// curl get.
$soundcloud_curl_get = _soundcloudfield_curl_get($oembed_url);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment