3
1
Back

About $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; } } Dead Philosophers elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { // only keep everything starting at the first if(preg_match("@.*()@", $article['content'], $matches)){ // Least I Could Do (wtf image size?) elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } Clean up code formatting; added a few comics; standardized appending alt/title text //also get the blog $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry){ $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; elseif (strpos($article["link"], "sorcery101.net/the-city-between/thebettertofindyouwith") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']//img", $article); } Various updates, additions 2018-03-14 21:06:04 -07:00 From f5e6b8a4df714a1a2bca4fe779760c14f25ac698 Mon Sep 17 00:00:00 2001 ttrss-plugin- _comics/init.php 356 lines class _comics extends Plugin { function get_img_tags($xpath, $query, $article) { $entries = $xpath->query("//div[@class='entry.

New Pull Request