3
1
Back

$this->get_img_tags($xpath, "//p[@id='comic_body']//a//img", $article); } // Least I Could Do (wtf image size?) $xpath = $this->get_xpath_dealie($article['link']); // $article['content'] = $this->get_img_tags($xpath, "//p[@id='comic_body']//img", $article); $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } if(preg_match("@.*()@", $article['content'], $matches)) { $img = $matches[1]; } } // Gunnerkrigg Court elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { // Manic Pixie Nightmare Girls elseif (strpos($article["link"], "eatthattoast.com/comic/") !== FALSE ) { // Wondermark (alt tag already present foreach($imgs as $img){ foreach ($imgs as $img) { if (preg_match("@.*(get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'comics')]", $article.

New Pull Request