mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-06 02:47:30 +02:00
[BridgeAbstract] replace getCacheDuration method by CACHE_TIMEOUT class constant
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
ad534444fa
commit
235c985901
81 changed files with 84 additions and 332 deletions
|
@ -3,6 +3,7 @@ class IsoHuntBridge extends BridgeAbstract{
|
|||
const MAINTAINER = 'logmanoriginal';
|
||||
const NAME = 'isoHunt Bridge';
|
||||
const URI = 'https://isohunt.to/';
|
||||
const CACHE_TIMEOUT = 300; //5min
|
||||
const DESCRIPTION = 'Returns the latest results by category or search result';
|
||||
|
||||
const PARAMETERS = array(
|
||||
|
@ -199,10 +200,6 @@ class IsoHuntBridge extends BridgeAbstract{
|
|||
}
|
||||
}
|
||||
|
||||
public function getCacheDuration(){
|
||||
return 300; // 5 minutes
|
||||
}
|
||||
|
||||
#region Helper functions for "Movie Torrents"
|
||||
|
||||
private function get_movie_torrents($html){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue