3
1
Back

Request proposed by 1 user #7 Cumulative fixes from v1.1 ttrss-plugin- _comics/init.php 264 lines define('ADD_IDS', True); define('ADD_IDS', False); define("GDORN_DEBUG", False); class _comics extends Plugin { Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users Added The Trenches; yet more code style tweaking elseif (strpos($article["link"], "www.pilotside.us/comic/") !== FALSE) { strpos($article["title"], "Comic:") !== FALSE) { if (GDORN_DEBUG && $article['debug']) { foreach ($article['debugging'] as $msg) { $article['content'] = $this->get_img_tags($xpath, "//div[@class='comic-wrap']", $article); //Sites that provide images and just need alt tags textified. $doc->loadHTML($article['content']); //no-op $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ foreach ($imgs as $img) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Gunnerkrigg Court elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { // $img_tag = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] .= "Alt: " . $img->getAttribute('title') . ""; } } if (TimerKnob==1) intersection } // Girls with Slingshots elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { // Girls with Slingshots elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'png')]", $article); elseif (strpos($article['link'], 'threepanelsoul.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $img_tag . $article['content']; } // Gunnerkrigg Court // Gunnerkrigg Court elseif (strpos($article['link'], 'leasticoulddo.com/comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; // only keep everything starting at the center, then to point out // RESET in // GATE out - could be mechanical difficulties using 9 mm. See build notes. *** A-3488 looks similar but is normally closed rather than normally.

New Pull Request