3
1
Back

Git clone --recurse-submodules git@gitlab.com:rsholmes/precadsr.git $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // SBMC elseif (strpos($article["link"], "trenchescomic.com/comic/post/") !== FALSE ) { // Poly In Pictures elseif (strpos($article['link'], 'cad-comic.com/sillies/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@class="webcomic-image"]//img)', $article); } //Sites that provide images and just need alt tags textified. //Sites that provide images and just need alt tags if (preg_match("@.*()@", $article['content'], $matches)) { if (parse_url($rel, PHP_URL_SCHEME) != '' || substr($rel, 0, 2) == '//') { if (strpos($article["content"], "bonus panel!") !== FALSE) { // Two Lumps elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { // Breaking Cat News elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { function get_img_tags($xpath, $query, $article, $base_url=NULL) { /* absolute URL */ $abs = preg_replace($re, '/', $abs, -1, $n)) { } else { return $article; } function get_xpath_dealie($link){ list($html, $content_type) = $this->get_content($link); //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // Three Panel Soul elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { // Eat That Toast bog-standard example // Penny Arcade elseif (strpos($article['link'], 'http://www.geekculture.com/joyoftech/') !== FALSE) { // PhD Unknown elseif (strpos($article["link"], "poorlydrawnlines.com/comic/") !== FALSE .

New Pull Request