forked from blallo/rss-bridge
Fix double forward-slash in returned post URI leading to 404
This commit is contained in:
parent
03fc09e3c6
commit
443081c90b
1 changed files with 2 additions and 2 deletions
|
@ -4,7 +4,7 @@ class MixCloudBridge extends BridgeAbstract {
|
||||||
|
|
||||||
const MAINTAINER = 'Alexis CHEMEL';
|
const MAINTAINER = 'Alexis CHEMEL';
|
||||||
const NAME = 'MixCloud';
|
const NAME = 'MixCloud';
|
||||||
const URI = 'https://www.mixcloud.com/';
|
const URI = 'https://www.mixcloud.com';
|
||||||
const CACHE_TIMEOUT = 3600; // 1h
|
const CACHE_TIMEOUT = 3600; // 1h
|
||||||
const DESCRIPTION = 'Returns latest musics on user stream';
|
const DESCRIPTION = 'Returns latest musics on user stream';
|
||||||
|
|
||||||
|
@ -26,7 +26,7 @@ class MixCloudBridge extends BridgeAbstract {
|
||||||
public function collectData(){
|
public function collectData(){
|
||||||
ini_set('user_agent', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0');
|
ini_set('user_agent', 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0');
|
||||||
|
|
||||||
$html = getSimpleHTMLDOM(self::URI . $this->getInput('u'))
|
$html = getSimpleHTMLDOM(self::URI . '/' . $this->getInput('u'))
|
||||||
or returnServerError('Could not request MixCloud.');
|
or returnServerError('Could not request MixCloud.');
|
||||||
|
|
||||||
foreach($html->find('section.card') as $element) {
|
foreach($html->find('section.card') as $element) {
|
||||||
|
|
Loading…
Reference in a new issue