From 641d5880c7c1af09701d4b1950047a994f75c8f7 Mon Sep 17 00:00:00 2001 From: ORelio Date: Sat, 27 Feb 2016 12:56:36 +0100 Subject: [PATCH] [T411] Domain name change T411 changeid their domain name to t411.ch --- bridges/T411Bridge.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bridges/T411Bridge.php b/bridges/T411Bridge.php index 54904cce..6d794cb5 100644 --- a/bridges/T411Bridge.php +++ b/bridges/T411Bridge.php @@ -5,7 +5,7 @@ class T411Bridge extends BridgeAbstract { $this->maintainer = "ORelio"; $this->name = "T411"; - $this->uri = "https://t411.in/"; + $this->uri = $this->getURI(); $this->description = "Returns the 5 newest torrents with specified search terms
Use url part after '?' mark when using their search engine"; $this->update = "2016-02-06"; @@ -34,8 +34,8 @@ class T411Bridge extends BridgeAbstract { $this->returnError('You must specify a search criteria', 400); } - //Retrieve torrent listing as truncated rss, which does not contain torrent description - $url = 'http://www.t411.in/torrents/search/?'.$param['search'].'&order=added&type=desc'; + //Retrieve torrent listing from search results, which does not contain torrent description + $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); $results = $html->find('table.results', 0); if (is_null($results)) @@ -64,7 +64,7 @@ class T411Bridge extends BridgeAbstract { $item_author = $item_html->find('a.profile', 0)->innertext; //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) { if (strpos($img->src, 'prez') === false) { $item_image = $img->src; @@ -92,7 +92,7 @@ class T411Bridge extends BridgeAbstract { } public function getURI() { - return 'https://t411.in'; + return 'https://t411.ch/'; } public function getCacheDuration() {