3
1
Back

For) $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Timothy Winchester (People I Know elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/noscript/img", $article); } // Wondermark (alt tag already present) // Wondermark (alt tag already present) elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='timeline-description']", $article); } // Scenes From A Multiverse (to get alt tags textified. //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'threepanelsoul.com/comic/') !== FALSE) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { return $this->mangle_article($article); } function mangle_article($article) { // $img_tag = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); $article['content'] = $img; } Fix for when invisible bread has no bread 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 else { cube([12.25, 19.25, thickness]); } // Least I Could Do (wtf image size?) elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { // Penny Arcade if(preg_match("@.*()@", $article['content'], $matches)){ $article['content'] = preg_replace("@@", '', $article['content']); // Joy of Tech // Joy of Tech elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { // Invisible Bread (make the bread visible $bread_page_url = $bread->getAttribute('href'); $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); } // Camp Weedonwantcha elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//img[starts-with(@src, 'sp') and contains(@src, 'comics')]", $article); // $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); } // Poly In Pictures // Poly In Pictures } // Least I Could Do (wtf image size? Elseif.

New Pull Request