changed TLD .se -> .org
http://betanews.com/2016/05/15/pirate-bay-domains-seized/ And the game of the cat and the mouse continue...
This commit is contained in:
parent
f9389cf7be
commit
a6e403f48d
1 changed files with 4 additions and 4 deletions
|
@ -5,7 +5,7 @@ class ThePirateBayBridge extends BridgeAbstract{
|
||||||
|
|
||||||
$this->maintainer = "mitsukarenai";
|
$this->maintainer = "mitsukarenai";
|
||||||
$this->name = "The Pirate Bay";
|
$this->name = "The Pirate Bay";
|
||||||
$this->uri = "https://thepiratebay.se/";
|
$this->uri = "https://thepiratebay.org/";
|
||||||
$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->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";
|
$this->update = "2015-01-09";
|
||||||
|
|
||||||
|
@ -60,7 +60,7 @@ class ThePirateBayBridge extends BridgeAbstract{
|
||||||
|
|
||||||
$keywordsList = explode(";",$param['q']);
|
$keywordsList = explode(";",$param['q']);
|
||||||
foreach($keywordsList as $keywords){
|
foreach($keywordsList as $keywords){
|
||||||
$html = file_get_html('https://thepiratebay.se/search/'.rawurlencode($keywords).'/0/3/0') or $this->returnError('Could not request TPB.', 404);
|
$html = file_get_html('https://thepiratebay.org/search/'.rawurlencode($keywords).'/0/3/0') or $this->returnError('Could not request TPB.', 404);
|
||||||
|
|
||||||
if ($html->find('table#searchResult', 0) == FALSE)
|
if ($html->find('table#searchResult', 0) == FALSE)
|
||||||
$this->returnError('No result for query '.$keywords, 404);
|
$this->returnError('No result for query '.$keywords, 404);
|
||||||
|
@ -68,7 +68,7 @@ class ThePirateBayBridge extends BridgeAbstract{
|
||||||
|
|
||||||
foreach($html->find('tr') as $element) {
|
foreach($html->find('tr') as $element) {
|
||||||
$item = new \Item();
|
$item = new \Item();
|
||||||
$item->uri = 'https://thepiratebay.se/'.$element->find('a.detLink',0)->href;
|
$item->uri = 'https://thepiratebay.org/'.$element->find('a.detLink',0)->href;
|
||||||
$item->id = $item->uri;
|
$item->id = $item->uri;
|
||||||
$item->timestamp = parseDateTimestamp($element);
|
$item->timestamp = parseDateTimestamp($element);
|
||||||
$item->title = $element->find('a.detLink',0)->plaintext;
|
$item->title = $element->find('a.detLink',0)->plaintext;
|
||||||
|
@ -86,7 +86,7 @@ class ThePirateBayBridge extends BridgeAbstract{
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getURI(){
|
public function getURI(){
|
||||||
return 'https://thepiratebay.se/';
|
return 'https://thepiratebay.org/';
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getCacheDuration(){
|
public function getCacheDuration(){
|
||||||
|
|
Loading…
Reference in a new issue