3
1
Back

List($html, $content_type) = $this->get_content($link); //Sites that provide images and just need alt tags if (preg_match("@.*()@", $article['content'], $matches)) { $article['content'] .= $aftercomic; $article['content'] .= "

" . $entry->textContent . "

"; $article['content'] .= "
$orig_content
"; } // Invisible Bread (make the bread visible elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; } } if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); } // Dilbert elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { elseif (strpos($article['link'], 'wondermark.com/c') !== FALSE) { //also append the blarg post because that's small, interesting, //and sometimes necessary for old fogeys like me to get what game it's about $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); // Girls with Slingshots $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[contains(@src, 'sp') and contains(@src, 'uploads') and contains(@src, 'comics')]", $article); } function get_img_tags($xpath, $query, $article){ $entries = $xpath->query("//div[@id='signoff-wrapper']"); foreach ($entries as $entry){ foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'png')]", $article); } // XKCD (alt tags we don't lose it QuentinEF.ttf | Bin 0 -> 580484 bytes .../Panels/Radio_shaek_standoff_padded.stl | Bin 0 -> 297934 bytes From cb59d1e9c06865f5bebe8c7ee0afa4859e0766b2 Mon.

New Pull Request