3
1
Back

(cleanup) elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { // Dilbert elseif (strpos($article['link'], 'https://web3isgoinggreat.com/single/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comic"]//img)', $article); } // Cyanide & Happiness elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="comicbody"]//img)', $article) . $article['content']; } // $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } Some comics supported elseif (strpos($article['link'], 'www.geekculture.com/joyoftech/') !== FALSE) { // Doghouse Diaries, which has broken alt tags elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { // Poorly Drawn Lines elseif (strpos($article["link"], "explosm.net/comics") !== FALSE) { $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } if(ADD_IDS){ $article['content'] .= "
" . $msg .

New Pull Request