3
1
Back

(48 B.Fab user hide (37 F.SilkS user hide (42 Eco1.User user hide 42 Eco1.User user hide (42 Eco1.User user hide (35 F.Paste user (36 "B.SilkS" user "B.Silkscreen" (37 "F.SilkS" user "F.Silkscreen" 40 "Dwgs.User" user "User.Drawings" (41 "Cmts.User" user "User.Comments" 42 "Eco1.User" user "User.Eco1" 43 "Eco2.User" user "User.Eco2" (44 "Edge.Cuts" user (45 Margin user (46 B.CrtYd user (47 F.CrtYd user (48 B.Fab user hide (42 Eco1.User user hide (42 Eco1.User user hide (0 "F.Cu" signal (31 "B.Cu" signal (32 "B.Adhes" user "B.Adhesive" (33 "F.Adhes" user "F.Adhesive" 36 "B.SilkS" user "B.Silkscreen" 37 "F.SilkS" user "F.Silkscreen" (38 "B.Mask" user (39 F.Mask user (40 Dwgs.User user hide From 5a4d5850276107dae545a96ba13aec19af1bdbba Mon Sep 17 00:00:00 2001 Subject: [PATCH 2/2] Fix for two bugs in Doghouse Diaries rss: spaces in img src and quotes in alt/title text under images (extra useful for non-browser users $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry){ $orig_src = $entry->getAttribute('src'); $new_src = $this->rel2abs($orig_src, $base_url); foreach($attributes as $attrib_name => $node){ } function rel2abs($rel, $base) { Various updates, additions elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); // Three Panel Soul elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } Assorted updates elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { $doc = new DOMDocument(); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } // Scenes From A Multiverse (to get alt tags) elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { //also append the blarg post because that's small, interesting, //also append the blarg post because that's small, interesting, //and sometimes necessary for old fogeys like me to get what game it's about $article['content'] .= "

" . $entry->textContent . "

New Pull Request