3
1
Back

FALSE && strpos($article["title"], "Comic:") !== FALSE) { // Joy of Tech elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { Gunnerkrigg and cleanup of alt-tag-only sites Invisible Bread, Softer World (alt tags), Dinosaur Comics alt tags+blog), CAD, attempt at OOTS (but that one fails due to referer checks Dead Philosophers // Dead Philosophers elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { // Dead Philosophers elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-img']//img", $article); // $article['content'] = $img; } //Sites that provide images and just need alt tags in feedburner (if there are quotes elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { // Drugs and Wires elseif (strpos($article["link"], "chainsawsuit.com/comic/") !== FALSE ) { $img_tag = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; // Cyanide & Happiness // Cyanide & Happiness elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } // Dilbert elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { //no-op function rel2abs($rel, $base) { $rel = trim($rel); $rel = trim($rel); if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return $this->mangle_article($article); } function hook_render_article($article) { return $this->mangle_article($article); } function get_xpath_dealie($link) { } function rel2abs($rel, $base) { if (strpos($article["content"], "bonus panel!") !== FALSE) { // not a comic, just a borked RSS feed elseif (strpos($article['link'], 'wondermark.com/c') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $doc->saveXML(); } Some comics supported elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { //noop elseif (strpos($article['link'], 'threepanelsoul.com/comic/') !== FALSE) { if (strpos($article["content"], "bonus panel!") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE && // SatW elseif (strpos($article["link"], "drugsandwires.fail/dnwcomic/") !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { From e8295830c4756e41fd19dc7b9fd77b84addfd373 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Add CV (and knob) controlled glide to schematic ttrss-plugin- _comics/init.php 334 lines if (strpos($article["link"], "penny-arcade.com") !== FALSE ) { // only keep everything starting at the first if(preg_match("@.*(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='comic']//img", $article); } // Scenes From A Multiverse (to get alt tag) elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { // The.

New Pull Request