Labels Milestones
BackReturn $this->mangle_article($article); } function get_content($link) { /** * Use this if you want to dig into the linked page for content, e.g. Alt tags. */ global $fetch_last_content_type; $html = fetch_file_contents($link); Fix for when invisiblebread has no bread function rel2abs($rel, $base) { if ($doc === NULL) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return $article; } /* OotS uses some kind of referer check which prevents fetch_file_contents() from retrieving the image. Elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); // Scenes From A Multiverse (to get alt tags textified. Function rel2abs($rel, $base) { function get_img_tags($xpath, $query, $article) { function about() { return array(0.1, 'Yet more stupid-simple comic-fetching.', ' '); } function get_img_tags($xpath, $query, $article){ $new_src = $this->rel2abs($orig_src, $article['link']); $entry->setAttribute('src', $new_src); $result_html .= "Alt: " . $img->getAttribute('title') . ""; // only keep everything starting at the first if(preg_match("@.*(
New Pull Request