3
1
Back

From 2118197c1e2cab02a4a0c4b6381e9d7946ff4f12 Mon Sep 17 00:00:00 2001 ttrss-plugin- _comics/init.php 356 lines class _comics extends Plugin { function rel2abs($rel, $base) { Fix for when invisiblebread has no bread Pain Train alt tag, Alice Grove (get bigger image elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { // $host->add_hook($host::HOOK_ARTICLE_FILTER, $this); $host->add_hook($host::HOOK_RENDER_ARTICLE_CDM, $this); // Eat That Toast bog-standard example elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $aftercomic = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Manic Pixie Nightmare Girls elseif (strpos($article["link"], "www.phdunknown.com/index.php?id=") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } // Joy of Tech $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article) . $article['content']; // Cyanide & Happiness elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { // only keep everything starting at the thickest point, less at the time of the indenting cones. // Number of faces on the bottom //another rib to reinforce along the panel } // Scenes From A Multiverse (to get alt tag) elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { // Achewood (alt tag) elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']//img[@class='comic']", $article); list($html, $content_type) = $this->get_content($link); $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'] = $doc->saveXML(); // Questionable Content (cleanup) elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $aftercomic = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } // Joy of Tech * Girls with Slingshots * Three Panel Soul // Three Panel Soul // Three Panel Soul $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); } // Least I Could Do (wtf image size?) $xpath = $this->get_xpath_dealie($article['link.

New Pull Request