3
1
Back

Form All distribution of the Stick $xpath = $this->get_xpath_dealie($article['link']); // $img_tag = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // SatW elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE ) { // Poly In Pictures // Poly In Pictures elseif (strpos($article['link'], 'amultiverse.com/comic/') !== FALSE) { //also get blog entry $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry){ $article['content'] .= "" . $entry->textContent . "

"; } } // Dinosaur Comics (alt tags+blog), CAD, attempt at OOTS (but that one fails due to referer checks elseif (strpos($article['link'], 'www.timothywinchester.com/2') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@class='timeline-description']", $article); } // Wondermark (alt tag already present elseif (strpos($article['content'], 'imgs.xkcd.com/comics/') !== FALSE) { $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ foreach ($imgs as $img) { if (parse_url($rel, PHP_URL_SCHEME) != '' .

New Pull Request