3
1
Back

"
Alt: $alt_text
"; list($html, $content_type) = $this->get_content($link); //Sites that provide images and just need alt tags if (preg_match("@.*()@", $article['content'], $matches)) { $img = $matches[1]; $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } // Timothy Winchester (People I Know) elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = preg_replace("@@", '', $article['content']); if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Dead Philosophers // Dead Philosophers elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ //also get the blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $aftercomic = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'ENG_')]", $article); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); } // Least I Could Do (wtf image size? Elseif.

New Pull Request