3
1
Back

Updated LICD, alter alt-textify to handle both title and alt tags textified. Elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; $img = $matches[1]; $img = $matches[1]; $img = preg_replace("@height=\"\d+\"@", "", $img); $img = preg_replace("@height=\"\d+\"@", "", $img); $img = $matches[1]; $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } // PhD Unknown elseif (strpos($article["link"], "manicpixienightmaregirls.com/") !== FALSE) { $article['content'] = $img_tag . $article['content']; } // Questionable Content (cleanup) // Questionable Content (cleanup) elseif (strpos($article['link'], 'dilbert.com/strip/') !== FALSE) { // Wondermark (alt tag already present) // Wondermark (alt tag already present elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { // Timothy Winchester (People I Know) elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; } } } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } // Softer World (alt tags), Dinosaur Comics (alt tags+blog), CAD, attempt.

New Pull Request