From 8ae9275ffd2c8288d16be50d8ce4713a5da0257a Mon Sep 17 00:00:00 2001 From: Mitsukarenai Date: Tue, 13 Sep 2016 23:05:51 +0200 Subject: [PATCH] [ProjectMGameBridge] website closed (issue #397) --- bridges/ProjectMGameBridge.php | 34 ---------------------------------- 1 file changed, 34 deletions(-) delete mode 100644 bridges/ProjectMGameBridge.php diff --git a/bridges/ProjectMGameBridge.php b/bridges/ProjectMGameBridge.php deleted file mode 100644 index 9bfaad04..00000000 --- a/bridges/ProjectMGameBridge.php +++ /dev/null @@ -1,34 +0,0 @@ -getSimpleHTMLDOM(self::URI) - or $this->returnServerError('Error while downloading the Project M homepage'); - - foreach($html->find('article') as $article) { - $item = array(); - $item['uri'] = self::URI.$article->find('section div.info_block a',0)->href; - $item['title'] = $article->find('h1 p',0)->innertext; - - $p_list = $article->find('section p'); - $content = ''; - foreach($p_list as $p) $content .= $p->innertext; - $item['content'] = $content; - - // get publication date - $str_date = $article->find('section div.info_block a',0)->innertext; - $item['timestamp'] = strtotime($str_date); - $this->items[] = $item; - } - } - - public function getCacheDuration(){ - return 10800; //3 hours - } -}