3
1
Back

$e->getMessage(); function mangle_article($article) { Added BCN, Something Positive if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { $xpath = new DOMXPath($doc); return $xpath; } function about() { return $this->mangle_article($article); } catch (Exception $e) { $article['content'] .= "
$orig_content
"; } // SatW // SatW elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[@class='comic']", $article); //also get blog $entries = $xpath->query("//div[@id='signoff-wrapper']"); // Pain Train (to get alt tag) elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { elseif (strpos($article['link'], 'girlswithslingshots.com/comic/') !== FALSE) { $img = preg_replace("@height=\"\d+\"@", "", $img); $img = preg_replace("@height=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // Jesus & Mo elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { // CTRL+ALT+DEL elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); // Pain Train alt tag, Alice Grove (get bigger image) elseif (strpos($article['link'], 'alicegrove.com') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='singleImage']/img[@class='magicfields']", $article); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } // Timothy Winchester (People I Know) elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { elseif.

New Pull Request