3
1
Back

&& Various updates, additions /* dirty absolute URL is ready! */ Assorted updates Assorted updates elseif (strpos($article['link'], 'paintraincomic.com/comic/') !== FALSE) { $article['content'] .= "

" . $entry->textContent . ""; $img_tag = $this->get_img_tags($xpath, "//figure[@class='photo-hires-item']//img", $article); // Doghouse Diaries, which has broken alt tags textified. Elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { elseif (strpos($article['link'], 'cad-comic.com/cad/') !== FALSE) { // Eat That Toast elseif (strpos($article["link"], "satwcomic.com/") !== FALSE) { $article['content'] = preg_replace('#(width|height)="150"#', '', $article['content']); if (preg_match("@.*?(.*)@", $article['content'], $matches)) { $article['content'] = $this->get_img_tags($xpath, "//img[@class='ksc' and contains(@src, 'png')]", $article); } // Two Lumps elseif (strpos($article['link'], 'polyinpictures.com/comic/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); // $img_tag = $this->get_img_tags($xpath, '//td/img[contains(@src, "/comics/images/")]', $article); } /* dirty absolute URL is ready! */ return $scheme.'://'.$abs; } function mangle_article($article) { // Three Panel Soul elseif (strpos($article['link'], 'jesusandmo.net') !== FALSE) { $article['content'] .= "

" . $entry->ownerDocument->saveXML($entry) . "

"; } } Clean up code formatting; added a few comics; standardized appending alt/title text //also get the blog //also get blog elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, "//div[@id='comicbody']//img", $article); } Dead Philosophers elseif (strpos($article['link'], 'threepanelsoul.com/2') !== FALSE) { //also append the blarg post because that's small, interesting, $entries = $xpath->query("//span[@class='rss-content']"); foreach ($entries as $entry){ foreach ($entries as $entry) { $article['content'] .= "Bonus comic:" . $aftercomic . ""; $img_tag = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); } */ // Whether to place the knob on a stem to form a mushroom shape. // Radius of the Software. THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED WARRANTIES.

New Pull Request