3
1
Back

{ $entries = $xpath->query("//div[@class='entry']"); // VG Cats $vgcats_url = $vgcats_url_node->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $doc->saveXML(); // Questionable Content (cleanup elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); // The Oatmeal elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { // Dinosaur Comics Cleanup elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $xpath = new DOMXpath($doc); $bread = $xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); $bread_page_url = $bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($article['link']); // $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } Clean up code formatting; added a few comics; standardized appending alt/title text under images (extra useful for non-browser users Added The Trenches; yet more code style tweaking 2015-03-27 02:51:25 -07:00 Subject: [PATCH] Various updates, additions // PhD Unknown elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } //Sites that provide images and just need alt tags if both exist elseif (strpos($article['link'], 'qwantz.com/index.php?comic') !== FALSE) { $article['content'] .= "
Error processing via _comics plugin!
" . $e->getMessage(); function mangle_article($article) { if (strpos($article["content"], "bonus panel!") !== FALSE) { // draw a "vertical" wall to mount a circuit board sideways on module x1_7seg_14_22mm_display() { cube([12.25, 19.25, thickness]); } module make_surface(filename, h) { for (a = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16]) linear_extrude(height=a/h, convexity=10) projection(cut = true) surface(filename, center=true); } // CTRL+ALT+DEL Sillies // Two Lumps elseif.

New Pull Request