From 9e209608c8b4796842e6d7727ddbb4473c081dfa Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Mon, 3 Oct 2016 19:35:54 +0200 Subject: [PATCH] [TheOatMeal] Remove bridge RSS feeds are provided on the main page at http://theoatmeal.com/ --- bridges/TheOatMealBridge.php | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 bridges/TheOatMealBridge.php diff --git a/bridges/TheOatMealBridge.php b/bridges/TheOatMealBridge.php deleted file mode 100644 index 65c8b51..0000000 --- a/bridges/TheOatMealBridge.php +++ /dev/null @@ -1,27 +0,0 @@ -collectExpandableDatas('http://feeds.feedburner.com/oatmealfeed'); - } - - protected function parseItem($newsItem) { - $item = parent::parseItem($newsItem); - - $articlePage = getSimpleHTMLDOMCached($item['uri']); - $content = $articlePage->find('#comic', 0); - if(is_null($content)) // load alternative - $content = $articlePage->find('#blog', 0); - - if(!is_null($content)) - $item['content'] = $content->innertext; - - return $item; - } -}