3
1
Back

Updates ttrss-plugin- _comics/init.php 264 lines define('ADD_IDS', True); class _comics extends Plugin { function rel2abs($rel, $base) { if (strpos($article["content"], "bonus panel!") !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ $article['content'] .= "" . $entry->textContent . "

"; } } module make_surface(filename, h) { for (a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16] if (h < four_hole_threshold) { if (strpos($article["content"], "bonus panel!") !== FALSE) { // Alice Grove (get bigger image // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="main"]//img)', $article); } elseif (strpos($title_text, $alt_text) !== false){ // there's both alt and title texts, they're both different, use both. } elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { //also append the blarg post because that's small, interesting, //and sometimes necessary for old fogeys like me to get 1:1 between schematic and front panel.

New Pull Request