3
1
Back

Function get_xpath_dealie($link) { } module make_surface(filename, h) { } //Sites that provide images and just need alt tags if both exist achewood, gwss fix, fix for when invisible bread has no bread function rel2abs($rel, $base) { if ($img->getAttribute('title')) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic-1']//img", $article); } // Breaking Cat News // Breaking Cat News elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//a//img", $article); } // XKCD (alt tags we don't need to call out for elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE && strpos($article["title"], "Comic:") !== FALSE) { $img = $matches[1]; $article['content'] = $this->get_img_tags($xpath, "//div[@class='singleImage']/img[@class='magicfields']", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@class='img-comic-container']//img", $article); } elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { // Poly In Pictures } // Breaking Cat News elseif (strpos($article['link'], 'http://www.achewood.com/index.php?date=') !== FALSE) { // Manic Pixie Nightmare Girls elseif (strpos($article["link"], "sorcery101.net/the-city-between/thebettertofindyouwith") !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Pain Train alt tag, Alice Grove bigger img elseif (strpos($article['link'], 'wondermark.com/c') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'comics')]", $article); } // Two Lumps elseif (strpos($article['link'], '//theoatmeal.com/comics/') !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } // Poorly Drawn Lines elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); // Dead Philosophers elseif (strpos($article['link.

New Pull Request