3
1
Back

Stupid-simple comic-fetching.', ' '); } function get_img_tags($xpath, $query, &$article, $base_url=NULL) { /* absolute URL is ready! */ return $scheme.'://'.$abs; } /* absolute URL is ready! */ Assorted updates elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { //noop elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { // there's both alt and title texts, they're both different, use both. $alt_element = $doc->createElement("i", $title_text); $para_element->appendChild($title_element); } Clean up code formatting; added a.

New Pull Request