3
1
Back

Aa68d7a21dc81e7382706897022ddc81b9f5db22 Mon Sep 17 00:00:00 2001 Subject: [PATCH] Checkpoint in case of crashes master ttrss-plugin- _comics/init.php 356 lines class _comics extends Plugin { catch (Exception $e) { $article['content'] = $this->get_img_tags($xpath, "//img[contains(@src, 'sp') and contains(@src, 'png')]", $article); } // Camp Weedonwantcha elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $doc = new DOMXPath($doc); } function mangle_article($article) { if (strpos($article['link'], 'eatthattoast.com/comic/') !== FALSE) { $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } //noop } // Dead Philosophers elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Wondermark (alt tag already present foreach($imgs as $img){ $article['content'] .= $aftercomic; $article['content'] .= "

$orig_content

"; //also.

New Pull Request