3
1
Back

Outs: elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { strpos($article["title"], "Comic:") !== FALSE) { // Gunnerkrigg Court elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // SatW elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") !== FALSE) { // CTRL+ALT+DEL // Three Panel Soul elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { // CTRL+ALT+DEL // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='timeline-description']", $article); } // Breaking Cat News elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { // Questionable Content (cleanup) elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // there's both alt and title texts, they're both different, use both. } elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { // Awkward Zombie elseif (strpos($article['link'], 'wondermark.com/c') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); // Drugs and Wires drugs & wires, pilotside 2018-11-20 08:29:13 -08:00 // Eat That Toast bog-standard example // Penny Arcade if (strpos($article["link"], "penny-arcade.com") !== FALSE ) { // CTRL+ALT+DEL elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $xpath = new DOMDocument(); elseif (strpos($article['link'], 'www.robot-hugs.com.

New Pull Request