3
1
Back

Important: Keep it simple. Follow one pattern. Class _comics extends Plugin { function rel2abs($rel, $base) { if ($doc === NULL) { foreach ($article['debug'] as $msg) { $article['content'] .= "

" . $entry->textContent . "

"; $article['content'] .= "ID: " . $article['id']; } return $article; } function get_xpath_dealie($link){ list($html, $content_type) = $this->get_content($link); $doc = new DOMXpath($doc); $bread = $xpath->query("//a[contains(@href, 'bonus-panel')]")->item(0); $bread_page_url = $bread->getAttribute('href'); $xpath = $this->get_xpath_dealie($bread_page_url); $extraimage = $xpath->query("//img[@class='extrapanelimage']")->item(0); $new_element = $doc->createElement("img"); $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'uploads')]", $article); elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { elseif (strpos($article['link'], 'www.robot-hugs.com/') !== FALSE) { // Timothy Winchester (People I Know elseif (strpos($article['link'], 'somethingpositive.net') !== FALSE) { elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '//p[@class="Maintext"]//img[contains(@src, "joyimages")]', $article); // $article['content'] = $this->get_img_tags($xpath, "//div[@class='comicpage']//img[contains(@src, 'ENG_')]", $article); } elseif (strpos(strtolower($article['link']), 'giantitp.com/comics/') !== FALSE) { // 1HP = 1/5" = 5.08mm // u[nits] function units_mm(u) = u * U.

New Pull Request