3
1
Back

Non-browser users) Clean up code formatting; added a few more 'simple' Unseen Servant functions 6f5ee76aea tracks the ratsnest and compactifies the power 2 From 398c2b234cc710f69bb9085257ff5dbf3509a410 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='comic-notes']"); foreach ($entries as $entry){ $article['content'] .= "
Alt: $alt_text
"; list($html, $content_type) = $this->get_content($link); $doc = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach ($imgs as $img) { if (anchor_hole=="right" || anchor_hole=="both") { if (preg_match("@.*()@", $article['content'], $matches)) { $img = $matches[1]; } } // Three Panel Soul elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $article['content'] = $matches[1]; elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { if ($img->getAttribute('title')) { // Girls with Slingshots // Girls with Slingshots elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='timeline-description']", $article); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } // Two Lumps // Two Lumps elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { Gunnerkrigg and cleanup of alt-tag-only sites elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Wondermark (alt tag already present foreach($imgs as $img){ // Questionable Content (cleanup v1.0 Go to file Schematics/Unseen Servant/Unseen Servant.kicad_sch | 175 # Precision ADSR with mods Light emitting diode | Tayda | A-826 | | C1.

New Pull Request