Merge pull request #294 from Frenzie/master

RTBFBridge: exclude "À voir aussi"
This commit is contained in:
Mitsu 2016-07-29 12:49:53 +02:00 committed by GitHub
commit a5b8c8d422

View file

@ -26,7 +26,7 @@ class RTBFBridge extends BridgeAbstract {
if (isset($param['c'])) { if (isset($param['c'])) {
$html = $this->file_get_html('http://www.rtbf.be/auvio/emissions/detail?id='.$param['c']) or $this->returnError('Could not request RTBF.', 404); $html = $this->file_get_html('http://www.rtbf.be/auvio/emissions/detail?id='.$param['c']) or $this->returnError('Could not request RTBF.', 404);
foreach($html->find('.rtbf-media-grid article') as $element) { foreach($html->find('section[id!=widget-ml-avoiraussi-] .rtbf-media-grid article') as $element) {
if($count < $limit) { if($count < $limit) {
$item = new \Item(); $item = new \Item();
$item->id = $element->getAttribute('data-id'); $item->id = $element->getAttribute('data-id');