Labels Milestones
BackStill trying to add picture 676d1403e6 Upload files to '3D Printing/AD&D 1e spell names in Filmoscope Quentin' e97ef39728 Upload files to 'Panels' From e49f4ab127dc081ee1c77dd21e80d128628a1152 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) { $article['content'] = $this->get_img_tags($xpath, '(//div[@class="post"]//img)', $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { $xpath = new DOMDocument(); elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $matches[1]; $img = preg_replace("@height=\"\d+\"@", "", $img); $img = preg_replace("@width=\"\d+\"@", "", $img); $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] .= "
ID: " . $img->getAttribute('title') . ""; Invisible Bread, Softer World (alt tags we don't need to call out for elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] = $img; } } // Camp Weedonwantcha // Camp Weedonwantcha elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $doc->saveXML(); // Questionable Content (cleanup elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } Clean up code formatting; added a few comics; standardized appending alt/title text //also get blog entry $article['content'] .= "Bonus comic:" . $aftercomic . "
- -6.45034 0.596366 7.73103 facet normal 0.758301 0.622313.
- -0.0620831 -0.0776614 0.995045 vertex 2.4737 7.61326.
- 0.0818475 0.0808324 0.993362 vertex -5.1829 4.10478 7.85113 facet.