1
0
Fork 0
forked from blallo/rss-bridge

[BandcampBridge] remove useless member $request

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière 2016-08-27 10:58:00 +02:00
parent 755d3e133f
commit 1de7fb748c

View file

@ -1,8 +1,6 @@
<?php
class BandcampBridge extends BridgeAbstract{
private $request;
public function loadMetadatas() {
$this->maintainer = "sebsauvage";
@ -22,8 +20,7 @@ class BandcampBridge extends BridgeAbstract{
$param=$this->parameters[$this->queriedContext];
$html = '';
if (isset($param['tag']['value'])) {
$this->request = $param['tag']['value'];
$html = $this->getSimpleHTMLDOM('http://bandcamp.com/tag/'.urlencode($this->request).'?sort_field=date') or $this->returnServerError('No results for this query.');
$html = $this->getSimpleHTMLDOM('http://bandcamp.com/tag/'.urlencode($param['tag']['value']).'?sort_field=date') or $this->returnServerError('No results for this query.');
}
else {
$this->returnClientError('You must specify tag (/tag/...)');
@ -45,7 +42,9 @@ class BandcampBridge extends BridgeAbstract{
}
public function getName(){
return (!empty($this->request) ? $this->request .' - ' : '') .'Bandcamp Tag';
$param=$this->parameters[$this->queriedContext];
return (!empty($param['tag']['value']) ? $param['tag']['value'] .' - ' : '') .'Bandcamp Tag';
}
public function getCacheDuration(){