.pw just changed to .io

This commit is contained in:
Jeremy Benoist 2015-11-06 22:49:40 +01:00
parent d0c5d5f8ca
commit b0305430c7

View file

@ -5,7 +5,7 @@
* 2015-05-17 * 2015-05-17
* *
* @name Cpasbien Bridge * @name Cpasbien Bridge
* @homepage http://Cpasbien.pw/ * @homepage http://www.cpasbien.io/
* @description Returns latest torrent from request query * @description Returns latest torrent from request query
* @maintainer lagaisse * @maintainer lagaisse
* @use1(q="keywords like this") * @use1(q="keywords like this")
@ -34,7 +34,7 @@ class CpasbienBridge extends HttpCachingBridgeAbstract{
$html = ''; $html = '';
if (isset($param['q'])) { /* keyword search mode */ if (isset($param['q'])) { /* keyword search mode */
$this->request = str_replace(" ","-",trim($param['q'])); $this->request = str_replace(" ","-",trim($param['q']));
$html = file_get_html('http://www.cpasbien.pw/recherche/'.urlencode($this->request).'.html') or $this->returnError('No results for this query.', 404); $html = file_get_html('http://www.cpasbien.io/recherche/'.urlencode($this->request).'.html') or $this->returnError('No results for this query.', 404);
} }
else { else {
$this->returnError('You must specify a keyword (?q=...).', 400); $this->returnError('You must specify a keyword (?q=...).', 400);
@ -74,7 +74,7 @@ class CpasbienBridge extends HttpCachingBridgeAbstract{
} }
public function getURI(){ public function getURI(){
return 'http://www.cpasbien.pw'; return 'http://www.cpasbien.io';
} }
public function getCacheDuration(){ public function getCacheDuration(){