fix for yet another dilbert changes
This commit is contained in:
parent
ec5ac2ec30
commit
b1bb951fb8
|
@ -6,7 +6,7 @@ class Af_Comics_Dilbert extends Af_ComicFilter {
|
|||
}
|
||||
|
||||
function process(&$article) {
|
||||
if (strpos($article["guid"], "dilbert.com") !== FALSE) {
|
||||
if (strpos($article["link"], "dilbert.com") !== FALSE) {
|
||||
$res = fetch_file_contents($article["link"], false, false, false,
|
||||
false, false, 0,
|
||||
"Mozilla/5.0 (compatible; MSIE 10.0; Windows NT 6.1; WOW64; Trident/6.0)");
|
||||
|
@ -24,7 +24,7 @@ class Af_Comics_Dilbert extends Af_ComicFilter {
|
|||
if ($doc) {
|
||||
$xpath = new DOMXPath($doc);
|
||||
|
||||
$basenode = $xpath->query('//div[@class="STR_Image"]')->item(0);
|
||||
$basenode = $xpath->query('//img[contains(@class, "img-comic")]')->item(0);
|
||||
|
||||
/* $entries = $xpath->query('(//img[@src])'); // we might also check for img[@class='strip'] I guess...
|
||||
|
||||
|
|
Loading…
Reference in New Issue