[BridgeAbstract] replace getCacheDuration method by CACHE_TIMEOUT class constant

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière 2016-09-25 17:04:28 +02:00
parent ad534444fa
commit 235c985901
81 changed files with 84 additions and 332 deletions

View file

@ -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){