aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-10-08 06:09:15 -0700
committerfriendica <info@friendica.com>2014-10-08 06:09:15 -0700
commit1fc3138c37564f44ea028c5fa8e69c718d08f363 (patch)
tree5c34bfcc6a2805ac4992b0101ff199baf8a0593e
parent98af2de9b49bfd8d23807f6f46366ef0f8a74e2b (diff)
downloadvolse-hubzilla-1fc3138c37564f44ea028c5fa8e69c718d08f363.tar.gz
volse-hubzilla-1fc3138c37564f44ea028c5fa8e69c718d08f363.tar.bz2
volse-hubzilla-1fc3138c37564f44ea028c5fa8e69c718d08f363.zip
soundcloud using a slightly different oembed mechanism - react accordingly
-rwxr-xr-xinclude/oembed.php9
-rw-r--r--version.inc2
2 files changed, 10 insertions, 1 deletions
diff --git a/include/oembed.php b/include/oembed.php
index de3a6edc8..8ce0fee96 100755
--- a/include/oembed.php
+++ b/include/oembed.php
@@ -56,6 +56,15 @@ function oembed_fetch_url($embedurl){
$txt = $x['body'];
break;
}
+ // soundcloud is now using text/json+oembed instead of application/json+oembed,
+ // others may be also
+ $entries = $xpath->query("//link[@type='text/json+oembed']");
+ foreach($entries as $e){
+ $href = $e->getAttributeNode("href")->nodeValue;
+ $x = z_fetch_url($href . '&maxwidth=' . $a->videowidth);
+ $txt = $x['body'];
+ break;
+ }
}
}
}
diff --git a/version.inc b/version.inc
index 203193fb7..147cef258 100644
--- a/version.inc
+++ b/version.inc
@@ -1 +1 @@
-2014-10-07.821
+2014-10-08.822