|
|
|
@ -30,6 +30,18 @@ class Af_GoComics extends Plugin {
|
|
|
|
|
|
|
|
|
|
$matches = array();
|
|
|
|
|
|
|
|
|
|
foreach ($entries as $entry) {
|
|
|
|
|
|
|
|
|
|
if (preg_match("/(http:\/\/assets.amuniversal.com\/.*width.*)/i", $entry->getAttribute("src"), $matches)) {
|
|
|
|
|
|
|
|
|
|
$entry->setAttribute("src", $matches[0]);
|
|
|
|
|
$basenode = $entry;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (!$basenode) {
|
|
|
|
|
// fallback on the smaller version
|
|
|
|
|
foreach ($entries as $entry) {
|
|
|
|
|
|
|
|
|
|
if (preg_match("/(http:\/\/assets.amuniversal.com\/.*)/i", $entry->getAttribute("src"), $matches)) {
|
|
|
|
@ -38,6 +50,7 @@ class Af_GoComics extends Plugin {
|
|
|
|
|
$basenode = $entry;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if ($basenode) {
|
|
|
|
|