From 7e91186c6ce3209b13475e5d30158df3039aa546 Mon Sep 17 00:00:00 2001 From: Albirew Date: Sat, 9 Jan 2016 10:23:19 +0100 Subject: [PATCH 1/2] TPB changed domain (again) TPB added .ms TLD and on the fly, .vg got down. PS: .se TLD still exist. --- bridges/ThePirateBayBridge.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bridges/ThePirateBayBridge.php b/bridges/ThePirateBayBridge.php index adb3641..020f4e8 100644 --- a/bridges/ThePirateBayBridge.php +++ b/bridges/ThePirateBayBridge.php @@ -5,9 +5,9 @@ class ThePirateBayBridge extends BridgeAbstract{ $this->maintainer = "mitsukarenai"; $this->name = "The Pirate Bay"; - $this->uri = "https://thepiratebay.vg/"; + $this->uri = "https://thepiratebay.ms/"; $this->description = "Returns results for the keywords. You can put several list of keywords by separating them with a semicolon (e.g. \"one show;another show\")"; - $this->update = "2014-05-26"; + $this->update = "2015-01-09"; $this->parameters[] = '[ @@ -60,7 +60,7 @@ class ThePirateBayBridge extends BridgeAbstract{ $keywordsList = explode(";",$param['q']); foreach($keywordsList as $keywords){ - $html = file_get_html('https://thepiratebay.vg/search/'.rawurlencode($keywords).'/0/3/0') or $this->returnError('Could not request TPB.', 404); + $html = file_get_html('https://thepiratebay.ms/search/'.rawurlencode($keywords).'/0/3/0') or $this->returnError('Could not request TPB.', 404); if ($html->find('table#searchResult', 0) == FALSE) $this->returnError('No result for query '.$keywords, 404); @@ -68,7 +68,7 @@ class ThePirateBayBridge extends BridgeAbstract{ foreach($html->find('tr') as $element) { $item = new \Item(); - $item->uri = 'https://thepiratebay.vg/'.$element->find('a.detLink',0)->href; + $item->uri = 'https://thepiratebay.ms/'.$element->find('a.detLink',0)->href; $item->id = $item->uri; $item->timestamp = parseDateTimestamp($element); $item->title = $element->find('a.detLink',0)->plaintext; @@ -86,7 +86,7 @@ class ThePirateBayBridge extends BridgeAbstract{ } public function getURI(){ - return 'https://thepiratebay.vg/'; + return 'https://thepiratebay.ms/'; } public function getCacheDuration(){ From 6deebb56a5a3cd20fe4dde1f2439318560e48816 Mon Sep 17 00:00:00 2001 From: Albirew Date: Fri, 15 Jan 2016 18:20:30 +0100 Subject: [PATCH 2/2] changed TLD .ms -> .se On continue le jeu du chat et de la souris =) --- bridges/ThePirateBayBridge.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bridges/ThePirateBayBridge.php b/bridges/ThePirateBayBridge.php index 020f4e8..3e55c60 100644 --- a/bridges/ThePirateBayBridge.php +++ b/bridges/ThePirateBayBridge.php @@ -5,7 +5,7 @@ class ThePirateBayBridge extends BridgeAbstract{ $this->maintainer = "mitsukarenai"; $this->name = "The Pirate Bay"; - $this->uri = "https://thepiratebay.ms/"; + $this->uri = "https://thepiratebay.se/"; $this->description = "Returns results for the keywords. You can put several list of keywords by separating them with a semicolon (e.g. \"one show;another show\")"; $this->update = "2015-01-09"; @@ -60,7 +60,7 @@ class ThePirateBayBridge extends BridgeAbstract{ $keywordsList = explode(";",$param['q']); foreach($keywordsList as $keywords){ - $html = file_get_html('https://thepiratebay.ms/search/'.rawurlencode($keywords).'/0/3/0') or $this->returnError('Could not request TPB.', 404); + $html = file_get_html('https://thepiratebay.se/search/'.rawurlencode($keywords).'/0/3/0') or $this->returnError('Could not request TPB.', 404); if ($html->find('table#searchResult', 0) == FALSE) $this->returnError('No result for query '.$keywords, 404); @@ -68,7 +68,7 @@ class ThePirateBayBridge extends BridgeAbstract{ foreach($html->find('tr') as $element) { $item = new \Item(); - $item->uri = 'https://thepiratebay.ms/'.$element->find('a.detLink',0)->href; + $item->uri = 'https://thepiratebay.se/'.$element->find('a.detLink',0)->href; $item->id = $item->uri; $item->timestamp = parseDateTimestamp($element); $item->title = $element->find('a.detLink',0)->plaintext; @@ -86,7 +86,7 @@ class ThePirateBayBridge extends BridgeAbstract{ } public function getURI(){ - return 'https://thepiratebay.ms/'; + return 'https://thepiratebay.se/'; } public function getCacheDuration(){