3
1
Back

If(preg_match("@.*()@", $article['content'], $matches)){ $img = $matches[1]; // Least I Could Do (wtf image size? Elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $article['content'] = str_replace('comicsthumbs', 'comics', $article['content']); foreach ($entries as $entry) { elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); } // CTRL+ALT+DEL // CTRL+ALT+DEL elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); } // Questionable Content (cleanup elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { //also get the blog $entries = $xpath->query("//div[@id='blarg']/div[last()]"); // Penny.

New Pull Request