mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-02-24 11:53:00 +01:00
commit
10c3dfa60e
@ -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(){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user