mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-09 08:28:46 +00:00
[IsoHuntBridge] Fix 'latest news' and 'latest hot topics'
This commit is contained in:
parent
8283a5a34f
commit
747e54d64a
@ -162,14 +162,18 @@ class IsoHuntBridge extends BridgeAbstract{
|
|||||||
|
|
||||||
private function request_latest_category($category){
|
private function request_latest_category($category){
|
||||||
switch($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->name = 'Latest hot torrents - ' . $this->name;
|
||||||
$this->uri .= '/statistic/hot/torrents';
|
$this->uri .= '/statistic/hot/torrents';
|
||||||
break;
|
$html = $this->load_html($this->uri);
|
||||||
case 'news':
|
$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->name = 'Latest news - ' . $this->name;
|
||||||
$this->uri .= '/';
|
$this->uri .= '/';
|
||||||
break;
|
$html = $this->load_html($this->uri);
|
||||||
|
$this->get_latest_news($html);
|
||||||
|
return;
|
||||||
case 'releases':
|
case 'releases':
|
||||||
$this->name = 'Latest releases - ' . $this->name;
|
$this->name = 'Latest releases - ' . $this->name;
|
||||||
$this->uri .= '/releases.php';
|
$this->uri .= '/releases.php';
|
||||||
|
Loading…
Reference in New Issue
Block a user