T411Bridge Minor fixes (#438)

T411Bridge Minor fixes
This commit is contained in:
Alexis CHEMEL 2016-12-06 18:20:41 +01:00 committed by Teromene
parent 3f503c4356
commit e908fe648b
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ class T411Bridge extends BridgeAbstract {
const MAINTAINER = 'ORelio'; const MAINTAINER = 'ORelio';
const NAME = 'T411 Bridge'; const NAME = 'T411 Bridge';
const URI = 'https://t411.ch/'; const URI = 'https://www.t411.li/';
const DESCRIPTION = 'Returns the 10 newest torrents with specified search terms <br /> Use url part after "?" mark when using their search engine.'; const DESCRIPTION = 'Returns the 10 newest torrents with specified search terms <br /> Use url part after "?" mark when using their search engine.';
const PARAMETERS = array( array( const PARAMETERS = array( array(
@ -25,7 +25,7 @@ class T411Bridge extends BridgeAbstract {
} }
//Retrieve torrent listing from search results, which does not contain torrent description //Retrieve torrent listing from search results, which does not contain torrent description
$url = self::URI.'torrents/search/?'.$this->getInput('search').'&order=added&type=desc'; $url = self::URI.'torrents/search/?search='.urlencode($this->getInput('search')).'&order=added&type=desc';
$html = getSimpleHTMLDOM($url) $html = getSimpleHTMLDOM($url)
or returnServerError('Could not request t411: '.$url); or returnServerError('Could not request t411: '.$url);