From 747e54d64a6d3327c494aa45d8c7fa7a05009171 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Mon, 22 Aug 2016 19:37:18 +0200 Subject: [PATCH] [IsoHuntBridge] Fix 'latest news' and 'latest hot topics' --- bridges/IsoHuntBridge.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/bridges/IsoHuntBridge.php b/bridges/IsoHuntBridge.php index 2ce826b..ac32752 100644 --- a/bridges/IsoHuntBridge.php +++ b/bridges/IsoHuntBridge.php @@ -162,14 +162,18 @@ class IsoHuntBridge extends BridgeAbstract{ private function request_latest_category($category){ switch($category){ - case 'hot_torrents': + case 'hot_torrents': // This is a special case! (that's why return) $this->name = 'Latest hot torrents - ' . $this->name; $this->uri .= '/statistic/hot/torrents'; - break; - case 'news': + $html = $this->load_html($this->uri); + $this->get_latest_hot_torrents($html); + return; + case 'news': // This is a special case! (that's why return) $this->name = 'Latest news - ' . $this->name; $this->uri .= '/'; - break; + $html = $this->load_html($this->uri); + $this->get_latest_news($html); + return; case 'releases': $this->name = 'Latest releases - ' . $this->name; $this->uri .= '/releases.php';