mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-26 11:26:31 +03:00
[T411] Domain name change
T411 changeid their domain name to t411.ch
This commit is contained in:
parent
0071a9fe2c
commit
641d5880c7
1 changed files with 5 additions and 5 deletions
|
@ -5,7 +5,7 @@ class T411Bridge extends BridgeAbstract {
|
||||||
|
|
||||||
$this->maintainer = "ORelio";
|
$this->maintainer = "ORelio";
|
||||||
$this->name = "T411";
|
$this->name = "T411";
|
||||||
$this->uri = "https://t411.in/";
|
$this->uri = $this->getURI();
|
||||||
$this->description = "Returns the 5 newest torrents with specified search terms <br /> Use url part after '?' mark when using their search engine";
|
$this->description = "Returns the 5 newest torrents with specified search terms <br /> Use url part after '?' mark when using their search engine";
|
||||||
$this->update = "2016-02-06";
|
$this->update = "2016-02-06";
|
||||||
|
|
||||||
|
@ -34,8 +34,8 @@ class T411Bridge extends BridgeAbstract {
|
||||||
$this->returnError('You must specify a search criteria', 400);
|
$this->returnError('You must specify a search criteria', 400);
|
||||||
}
|
}
|
||||||
|
|
||||||
//Retrieve torrent listing as truncated rss, which does not contain torrent description
|
//Retrieve torrent listing from search results, which does not contain torrent description
|
||||||
$url = 'http://www.t411.in/torrents/search/?'.$param['search'].'&order=added&type=desc';
|
$url = $this->getURI().'torrents/search/?'.$param['search'].'&order=added&type=desc';
|
||||||
$html = file_get_html($url) or $this->returnError('Could not request t411: '.$url, 500);
|
$html = file_get_html($url) or $this->returnError('Could not request t411: '.$url, 500);
|
||||||
$results = $html->find('table.results', 0);
|
$results = $html->find('table.results', 0);
|
||||||
if (is_null($results))
|
if (is_null($results))
|
||||||
|
@ -64,7 +64,7 @@ class T411Bridge extends BridgeAbstract {
|
||||||
$item_author = $item_html->find('a.profile', 0)->innertext;
|
$item_author = $item_html->find('a.profile', 0)->innertext;
|
||||||
|
|
||||||
//Retrieve image for thumbnail or generic logo fallback
|
//Retrieve image for thumbnail or generic logo fallback
|
||||||
$item_image = 'http://www.t411.in/themes/blue/images/logo.png';
|
$item_image = $this->getURI().'themes/blue/images/logo.png';
|
||||||
foreach ($item_desc->find('img') as $img) {
|
foreach ($item_desc->find('img') as $img) {
|
||||||
if (strpos($img->src, 'prez') === false) {
|
if (strpos($img->src, 'prez') === false) {
|
||||||
$item_image = $img->src;
|
$item_image = $img->src;
|
||||||
|
@ -92,7 +92,7 @@ class T411Bridge extends BridgeAbstract {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getURI() {
|
public function getURI() {
|
||||||
return 'https://t411.in';
|
return 'https://t411.ch/';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getCacheDuration() {
|
public function getCacheDuration() {
|
||||||
|
|
Loading…
Reference in a new issue