diff --git a/bridges/TebeoBridge.php b/bridges/TebeoBridge.php index 9bc3bff..9050439 100644 --- a/bridges/TebeoBridge.php +++ b/bridges/TebeoBridge.php @@ -13,18 +13,16 @@ class TebeoBridge extends FeedExpander { 'values' => array( 'Toutes les vidéos' => '/', 'Actualité' => '/14-actualite', - 'Sport' => '/3-sport', - 'Culture-Loisirs' => '/5-culture-loisirs', - 'Société' => '/15-societe', - 'Langue Bretonne' => '/9-langue-bretonne' + 'Sport' => '/3-sport', + 'Culture-Loisirs' => '/5-culture-loisirs', + 'Société' => '/15-societe', + 'Langue Bretonne' => '/9-langue-bretonne' ) ) )); public function collectData(){ $url = self::URI . '/le-replay/' . $this->getInput('cat'); - - $html = getSimpleHTMLDOM($url) or returnServerError('Could not request Tébéo.'); @@ -34,7 +32,7 @@ class TebeoBridge extends FeedExpander { $item['title'] = $element->find('h3', 0)->plaintext; $item['timestamp'] = strtotime($element->find('p.moment-format-day', 0)->plaintext); $item['content'] = ''; - $this->items[] = $item; - } - } + $this->items[] = $item; + } + } }