soundcloud using a slightly different oembed mechanism - react accordingly

This commit is contained in:
friendica 2014-10-08 06:09:15 -07:00
parent 98af2de9b4
commit 1fc3138c37
2 changed files with 10 additions and 1 deletions

View File

@ -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;
}
}
}
}

View File

@ -1 +1 @@
2014-10-07.821
2014-10-08.822