1
0
Fork 0
forked from blallo/rss-bridge

[VineBridge] code simplification

Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
Pierre Mazière 2016-08-29 23:43:19 +02:00
parent 55c406e1b4
commit 83fad77a08

View file

@ -15,9 +15,10 @@ class VineBridge extends BridgeAbstract {
public function collectData(){
$html = '';
$uri = 'http://vine.co/u/'.$this->getInput('u').'?mode=list';
$uri = $this->uri.'/u/'.$this->getInput('u').'?mode=list';
$html = $this->getSimpleHTMLDOM($uri) or $this->returnServerError('No results for this query.');
$html = $this->getSimpleHTMLDOM($uri)
or $this->returnServerError('No results for this query.');
foreach($html->find('.post') as $element) {
$a = $element->find('a', 0);