3
1
Back

D10 | 8 "use_height_for_length_calcs": true From cb3a50e19a42a9ab425057cfa1f9427c1c21d019 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Gunnerkrigg and cleanup of alt-tag-only sites elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $doc->saveXML(); // Questionable Content (cleanup elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { // Eat That Toast elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[contains(@src, 'sp') and contains(@src, 'uploads') and contains(@src, 'comics')]", $article); // $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } // Joy of Tech elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Awkward Zombie elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { //also get the blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $xpath.

New Pull Request