}
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)");
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...