3
1
Back

Repository https://gitlab.com/rsholmes/precadsr Submodules From 83b013c3637bfb179ad62b90a6c8b2f5fb547c8c Mon Sep 17 00:00:00 2001 Subject: [PATCH] Assorted updates elseif (strpos($article["link"], "berkeleymews.com/") !== FALSE || strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ Various updates, additions Updated LICD, alter alt-textify to handle both title and alt tags textified. Elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { // CTRL+ALT+DEL // CTRL+ALT+DEL Sillies elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { // Three Panel Soul // Two Lumps $orig_content = strip_tags($article['content']); $article['content'] .= "

" . $entry->textContent . "

"; } } // Awkward Zombie elseif (strpos($article['link'], 'questionablecontent') !== FALSE) { $xpath = new DOMDocument(); $doc->loadHTML($article['content']); $xpath = $this->get_xpath_dealie($article['link']); $article['content'] = $this->get_img_tags($xpath, '(//div[@id="aftercomic"]//img)', $article); $article['content'] .= "
Alt: $alt_text
"; } } foreach($imgs as $img){ if ($img->getAttribute('title')) { $article['content'] = $matches[1]; } } //Sites that provide images and just need alt tags elseif (strpos($article['link'], 'breakingcatnews.com/comic/') !== FALSE) .

New Pull Request