3
1
Back

Pull Request 1 Pull request proposed by 1 user #7 Cumulative fixes from v1.1 ttrss-plugin- _comics/init.php 356 lines class _comics extends Plugin { function get_img_tags($xpath, $query, $article){ $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry) { $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'png')]", $article); } // Dead Philosophers 2015-02-25 15:05:54 -08:00 // Eat That Toast bog-standard example // Breaking Cat News // Breaking Cat News $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry){ $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; // only keep everything starting at the first // Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']/img", $article); } Clean up code formatting; added a few due to referer checks elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { // Manic Pixie Nightmare Girls elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'comics')]", $article); } Various updates, additions Fix for component clearance, panel.

New Pull Request