fix: TébéoBridge Travis cleanup
This commit is contained in:
parent
bb58aa8e31
commit
7939bffcdd
1 changed files with 7 additions and 9 deletions
|
@ -13,18 +13,16 @@ class TebeoBridge extends FeedExpander {
|
||||||
'values' => array(
|
'values' => array(
|
||||||
'Toutes les vidéos' => '/',
|
'Toutes les vidéos' => '/',
|
||||||
'Actualité' => '/14-actualite',
|
'Actualité' => '/14-actualite',
|
||||||
'Sport' => '/3-sport',
|
'Sport' => '/3-sport',
|
||||||
'Culture-Loisirs' => '/5-culture-loisirs',
|
'Culture-Loisirs' => '/5-culture-loisirs',
|
||||||
'Société' => '/15-societe',
|
'Société' => '/15-societe',
|
||||||
'Langue Bretonne' => '/9-langue-bretonne'
|
'Langue Bretonne' => '/9-langue-bretonne'
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
));
|
));
|
||||||
|
|
||||||
public function collectData(){
|
public function collectData(){
|
||||||
$url = self::URI . '/le-replay/' . $this->getInput('cat');
|
$url = self::URI . '/le-replay/' . $this->getInput('cat');
|
||||||
|
|
||||||
|
|
||||||
$html = getSimpleHTMLDOM($url)
|
$html = getSimpleHTMLDOM($url)
|
||||||
or returnServerError('Could not request Tébéo.');
|
or returnServerError('Could not request Tébéo.');
|
||||||
|
|
||||||
|
@ -34,7 +32,7 @@ class TebeoBridge extends FeedExpander {
|
||||||
$item['title'] = $element->find('h3', 0)->plaintext;
|
$item['title'] = $element->find('h3', 0)->plaintext;
|
||||||
$item['timestamp'] = strtotime($element->find('p.moment-format-day', 0)->plaintext);
|
$item['timestamp'] = strtotime($element->find('p.moment-format-day', 0)->plaintext);
|
||||||
$item['content'] = '<a href="'.$item['uri'].'"><img alt="" src="'.$element->find('img', 0)->src.'"></a>';
|
$item['content'] = '<a href="'.$item['uri'].'"><img alt="" src="'.$element->find('img', 0)->src.'"></a>';
|
||||||
$this->items[] = $item;
|
$this->items[] = $item;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue