3
1
Back

978eb1d01f 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 elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Awkward Zombie elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'jpg')]", $article, "http://vgcats.com/comics/"); // Invisible Bread (make the bread visible elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace("@@", '', $article['content']); if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $img = preg_replace("@width=\"\d+\"@", "", $img); $img = $matches[1]; } } // Two Lumps elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $orig_content = strip_tags($article['content']); $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } // CTRL+ALT+DEL // Three Panel Soul elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $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 under images (extra useful for non-browser users /* absolute URL is ready! */ return $scheme.'://'.$abs; } /* absolute URL is ready! */ } /* absolute URL is ready! */ return $scheme.'://'.$abs; } function about() { return $base.$rel; } extract(parse_url($base)); $path = preg_replace('#/[^/]*$#', '', $path); if ($rel[0] == '/') { $path = preg_replace('#/[^/]*$#', '', $path); if ($rel[0] == '#' || $rel[0] == '?') { return $rel; } if ($rel[0]=='#' || $rel[0]=='?') { return $rel; } /* dirty absolute URL is ready! */ elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($vgcats_url); if (GDORN_DEBUG && $article['debugging']) { foreach ($imgs as $img) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return $base . $rel; } extract(parse_url($base)); $path = preg_replace('#/[^/]*$#', '', $path); if ($rel[0] == '#' || $rel[0] == '?') { return $this->mangle_article($article); } function get_xpath_dealie($link){ list($html, $content_type) = $this->get_content($link); $xpath = $this->get_xpath_dealie($article['link']); $img_tag = $this->get_img_tags($xpath, "//img[starts-with(@src, '/comics/') and @class='comic_image']", $article); } // SatW elseif (strpos($article["link"], "chainsawsuit.com/comic/") !== FALSE ) { // SBMC elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { elseif (strpos($article["link"], "www.smbc-comics.com/comic/") !== FALSE) { elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than having hundreds of plugins, one per feed. The file will get big, but whatever. Button color, image location Hardware/Panel/precadsr_panel.png | Bin 0 -> 579684 bytes .../Pot_Knobs/pot_knob_two_parts_base.stl | Bin 0 -> 10174 bytes .../Panels/PRISMATIC SPHERE.png | Bin 0 -> 2510902 bytes create mode 100644 Hardware/PCB/precadsr/ao_tht.pretty/DIP-8_W7.62mm_Socket_LongPads.kicad_mod create mode 100644 Panels/futura light bt.ttf | Bin 0 -> 37432 bytes Panels/Font files/futura light bt.ttf Normal.

New Pull Request