3
1
Back

(strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/noscript/img", $article); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { // Wondermark (alt tag already present elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $article['content'] = $matches[1]; $img = $matches[1]; $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users // $article['content'] = $img; } } Dead Philosophers elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { // Poly In Pictures elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { // Questionable Content (cleanup) elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); $article['content'] .= "

" . $entry->textContent . "

"; } } return $article; } Some comics.

New Pull Request