3
1
Back

More code style tweaking elseif (strpos($article["link"], "manicpixienightmaregirls.com/") !== FALSE) { // CTRL+ALT+DEL elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); // Penny Arcade elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { // $xpath = $this->get_xpath_dealie($article['link']); // 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, '(//div[@class="container"]//center//img)', $article); // $article['content'] = $img; } //Sites that provide images and just need alt tags textified. Elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { $xpath = new DOMXPath($doc); return $xpath; } function hook_render_article($article) { try { return array(0.1, return array( $html, $content_type ); } function rel2abs($rel, $base) { 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 function get_content($link) { $html = fetch_file_contents($link); $content_type = $fetch_last_content_type; function rel2abs($rel, $base) { function get_img_tags($xpath, $query, $article, $base_url=NULL) { /* absolute URL is ready! */ return $scheme.'://'.$abs; } /* dirty absolute URL is ready! */ left_rib_x = 0; // [0:No, 1:Yes] // Would you like a line (pointer) on the bottom // you won't need to be centered around the top (mm) hole_dist_top = 2.5; // margins from edges h_margin = hole_dist_side.

New Pull Request