3
1
Back

= $vgcats_url_node->getAttribute('href'); $xpath = new DOMXpath($doc); $imgs = $xpath->query('//img'); //doesn't get simpler than this foreach($imgs as $img){ if ($img->getAttribute('title')) { // Invisible Bread (make the bread visible elseif (strpos($article['content'], 'thedoghousediaries.com/dhdcomics/') !== FALSE){ Various updates, additions // PhD Unknown elseif (strpos($article["link"], "www.pilotside.us/comic/") !== FALSE) { $article['content'] .= "
Alt: " . $img->getAttribute('title') . ""; } } Pain Train alt tag, Alice Grove bigger img elseif (strpos($article['link'], 'awkwardzombie.com/index.php?comic') !== FALSE) { // generate holes for a few comics; standardized appending alt/title text 2015-04-12 23:37:10 -07:00 Latest commits for file .gitignore Initial commit 2015-02-23 04:24:08 -08:00 Yet more ways of pulling comics, alt text and salient bits of blogs into Tiny Tiny RSS entries. Binary files a/3D Printing/AD&D 1e spell names in Filmoscope Quentin/Panels/POLYMORPH.png # precadsr.sch BOM Various tweaks From 8f3ce8359ba460976b5ffcbe5a92590e33120bbc Mon Sep 17 00:00:00 2001 Subject: [PATCH] Fix for when invisible bread has no bread $article['content'] = $this->get_img_tags($xpath, '(//img[@id="main-comic"])', $article); $article['content'] = $this->get_img_tags($xpath, "//div[@id='imgdiv']//img", $article); //also get the blog // XKCD (alt tags we don't need to call out for) $article['content'] = $this->get_img_tags($xpath, "//div[@id='comic']/img", $article); $article['content'] = preg_replace('#(/[0-9-]+)-150x150\.gif#', '$1.gif', $article['content']); $article['content'] = $doc->saveHTML(); elseif (strpos($article['link'], 'gunnerkrigg.com/?p') !== FALSE) { //noop elseif (strpos($article['content'], 'wondermark.com/c') !== FALSE) { elseif (strpos($article['link'], 'campcomic.com/comic/') !== FALSE) { $article['content'] .= "

" . $entry->textContent . "

"; } } // XKCD (alt tags we don't need to call out for elseif (strpos($article['content'], 'www.asofterworld.com/index.php?id') !== FALSE) { elseif (strpos($article['link'], 'twolumps.net/d/') !== FALSE) { $xpath = $this->get_xpath_dealie($article['link']); $article['content.

New Pull Request