3
1
Back

'awkwardzombie.com/index.php?comic') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); } // Least I Could Do (wtf image size? If(preg_match("@.*()@", $article['content'], $matches)){ $article['content'] = $matches[1]; $img = $matches[1]; $img = $matches[1]; $img = preg_replace("@height=\"\d+\"@", "", $img); $img = preg_replace("@width=\"\d+\"@", "", $img); $article['content'] = $this->get_img_tags($xpath, "//div[@id='content']/img", $article); } // Joy of Tech Scenes From A Multiverse (to get alt tags if both exist elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { // Girls with Slingshots * Three Panel Soul // Three Panel Soul elseif (strpos($article['link'], 'dead-philosophers.com/?p') !== FALSE) { $img = $matches[1]; } } } } Invisible Bread, Softer World (alt tags), Dinosaur Comics (alt tags+blog), CAD, attempt at OOTS (but that one fails due to referer checks 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, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); } Invisible Bread, Softer World (alt tags), Dinosaur Comics (alt tags+blog), CAD, attempt at OOTS (but that one fails due to referer checks Added BCN, Something Positive elseif (strpos($article['link'], 'cad-comic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); // And get blog entry $entries = $xpath->query("//div[@id='blarg']/div[last()]"); foreach ($entries as $entry) { $article['content'] = preg_replace("@@", '', $article['content']); } // Questionable Content (cleanup) // Questionable Content (cleanup v1.0 Go to file 45c41b9873 More mounting hole 3.2mm no annular m2 Mounting Hole 2.7mm, no annular, M2, DIN965 mounting hole 2.7mm no annular Mounting Hole 2.7mm, no annular, M3, ISO7380 mounting hole 6mm no annular mounting hole 2.7mm m2.5 Mounting Hole 3.7mm, no annular mounting hole 3.2mm no annular m6 Mounting Hole 2.2mm, no annular, M2.5, DIN965 mounting hole 4.3mm no annular mounting hole 3.2mm m3 iso14580 Mounting Hole 2.2mm, M2, ISO14580 mounting hole 2.7mm m2.5 Mounting Hole 4.3mm, M4 mounting hole 2.7mm m2.5 iso14580 Mounting Hole.

New Pull Request