3
1
Back

Point at the first if(preg_match("@.*()@", $article['content'], $matches)){ $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); } // XKCD (alt tags we don't need to call out for elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ $article['content'] = $matches[1]; // Least I Could Do (wtf image size?) $xpath = $this->get_xpath_dealie($article['link']); elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { // Scenes From A Multiverse (to get alt tag elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $doc = new DOMDocument(); // replace the

(containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); // Manic Pixie Nightmare Girls elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { // slightly complicated; the link is to.

New Pull Request