Update BandcampBridge.php

This commit is contained in:
Anadrark 2013-12-20 05:59:47 +01:00
parent 8618866a74
commit f27dc12042

View File

@ -12,7 +12,7 @@ class BandcampBridge extends BridgeAbstract{
public function collectData(array $param){ public function collectData(array $param){
$html = ''; $html = '';
if (isset($param['tag'])) { /* keyword search mode */ if (isset($param['tag'])) {
$this->request = $param['tag']; $this->request = $param['tag'];
$html = file_get_html('http://bandcamp.com/tag/'.urlencode($this->request).'?sort_field=date') or $this->returnError('No results for this query.', 404); $html = file_get_html('http://bandcamp.com/tag/'.urlencode($this->request).'?sort_field=date') or $this->returnError('No results for this query.', 404);
} }