3
1
Back

Class _comics extends Plugin { 'Yet more stupid-simple comic-fetching.', } function rel2abs($rel, $base) { function about() { return $base.$rel; if ($rel[0] == '/') { $path = preg_replace('#/[^/]*$#', '', $path); if ($rel[0] == '#' || $rel[0] == '?') { return array(0.1, return array( $html, $content_type ); } function get_img_tags($xpath, $query, $article, $base_url=NULL) { function about() { function about() { function api_version() { return $article; } Some comics supported elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { if (strpos($article["content"], "bonus panel!") !== FALSE) { $xpath = new DOMXpath($doc); $bread = $xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); $bread_page_url = $bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); } Assorted updates More layout.

New Pull Request