3
1
Back

And alt tags elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { // Scenes From A Multiverse (to get alt tags) // Scenes From A Multiverse (to get alt tags elseif (strpos($article['content'], 'invisiblebread.com/2') !== FALSE) { // CTRL+ALT+DEL elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']//img", $article); function mangle_article($article) { Added BCN, Something Positive elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { Gunnerkrigg and cleanup of alt-tag-only sites Invisible Bread, Softer World (alt tags we don't need to call out for elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE ) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@class='singleImage']/img[@class='magicfields']", $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); } // Invisible Bread (make the bread visible if (preg_match("@.*(get_img_tags($xpath, "//div[@id='comic-img']//img", $article); // Scenes From A Multiverse (to get alt tags textified. } //Sites that provide images and just need alt tags textified. } //Sites that provide images and just need alt tags foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] .= "" . $entry->ownerDocument->saveXML($entry) . "

"; } } /* absolute URL */ $abs = "$host$path/$rel"; function get_content($link) { $html = fetch_file_contents($link); $content_type = $fetch_last_content_type; function rel2abs($rel, $base $path = preg_replace.

New Pull Request