3
1
Back

- Casc Out - 1K to U3-7 Feed of " /ttrss-plugin- _comics" 740: https://gitea.circuitlocution.com/ /ttrss-plugin- _comics/commit/969311f00cbb6d6ece9a25b5fb1d4e2884e468c0 d9153c70802a10d2fe554f80f1a497b409aac630 sr1 2bb058d5715f395d3571ea05d3008566787a2bdb elseif (strpos($article["link"], "eatthattoast.com/comic/") !== FALSE ) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // PhD Unknown elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $doc = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); // there's both alt and title texts, they're both different, use both. $title_element = $doc->createElement("i", $alt_text); $para_element->appendChild($text_element); } elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE && // Cyanide & Happiness // Cyanide & Happiness elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ //also get blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] .= "$orig_content"; // Awkward Zombie // Awkward Zombie $entries = $xpath->query("//div[@id='signoff-wrapper']"); } //Sites that provide images and just need alt tags elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { // Achewood (alt tag already present elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); $article['content'] .= "

$orig_content

"; //also append the blarg post because that's small, interesting, $entries = $xpath->query("//div[@class='entry']"); foreach ($entries as $entry) { // Two Lumps $orig_content = strip_tags($article['content']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='cc-comicbody']//img", $article); if ($extraimage) { format.

New Pull Request