This commit is contained in:
marijus 2014-10-08 15:09:54 +02:00
commit 9a1c3f10b2
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