3
1
Back

Schematic ttrss-plugin- _comics/init.php 356 lines class _comics extends Plugin { function about() { return $this->mangle_article($article); } function mangle_article($article) { if (strpos($article["content"], "bonus panel!") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img; } } // draw a "vertical" wall } // Scenes From A Multiverse (to get alt tags if both exist elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); } /* absolute URL is ready! */ return $scheme . '://' . $abs; if (preg_match("@.*(get_img_tags($xpath, "//div[@class='singleImage']/img[@class='magicfields']", $article); elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = new DOMXpath($doc); $bread = $xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); if ($bread) { $html = fetch_file_contents($link); $content_type = $fetch_last_content_type; return array( $html, $content_type ); } function get_xpath_dealie($link){ list($html, $content_type) = $this->get_content($link); $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = new DOMDocument(); // replace the (containing project wonderful) with nothing $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] .= "Bonus comic:" . $aftercomic . ""; // Camp Weedonwantcha elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); // $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // Pain Train.

New Pull Request