3
1
Back

Before the first $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); elseif (strpos($article["link"], "berkeleymews.com/") !== FALSE ) { // Three Panel Soul elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $article['content'] .= "
Error processing via _comics plugin!
" . $e->getMessage(); function mangle_article($article) { // Joy of Tech * Girls with Slingshots // Girls with Slingshots elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } // Girls with Slingshots elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { // The Trenches // The Trenches elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { // Poly In Pictures // Poly In Pictures elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace("@@", '', $article['content']); if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $img = preg_replace("@height=\"\d+\"@", "", $img); $img = preg_replace("@height=\"\d+\"@", "", $img); $img = $matches[1]; } } // Poly In Pictures // Poly In Pictures elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { elseif (strpos($article['link'], 'https://web3isgoinggreat.com/single/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link.

New Pull Request