Labels Milestones
BackUser #7 Cumulative fixes from v1.1 ttrss-plugin- _comics/init.php 399 lines } Pain Train (to get alt tag) elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } // Questionable Content (cleanup) // Questionable Content (cleanup) elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); // Drugs and Wires elseif (strpos($article["link"], "eatthattoast.com/comic/") !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $matches[1]; } } //Sites that provide images and just need alt tags elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { $article['content'] .= "
Error processing via _comics plugin!
" . $e->getMessage(); } } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users // $article['content'] = preg_replace("@
- 3.505762e+000 2.484855e+001 facet normal 0.585656 0.804473 0.0991463.
- Segemnt blue LED, right hand decimal, https://docs.broadcom.com/docs/AV02-1588EN 2.
- 0805USB Series Common Mode Choke, https://www.coilcraft.com/pdfs/0603usb.pdf.
- -8.28921 -3.4335 4.79464 facet normal -1.141597e-13 -1.000000e+00 -3.499341e-14.