mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-23 06:56:53 +00:00
[Radio Melodie] Coding policy fix
This commit is contained in:
parent
7aab94dc81
commit
d0a6694564
@ -12,12 +12,11 @@ class RadioMelodieBridge extends BridgeAbstract {
|
||||
$html = getSimpleHTMLDOM(self::URI . 'actu')
|
||||
or returnServerError('Could not request Radio Melodie.');
|
||||
$list = $html->find('div[class=actuitem]');
|
||||
foreach($list as $element)
|
||||
{
|
||||
foreach($list as $element) {
|
||||
$item = array();
|
||||
|
||||
// Get picture URL
|
||||
$pictureHTML = $element->find('div[class=picture]');
|
||||
$pictureHTML = $element->find('div[class=picture]');
|
||||
preg_match(
|
||||
'/background-image:url\((.*)\);/',
|
||||
$pictureHTML[0]->getAttribute('style'),
|
||||
@ -26,8 +25,8 @@ class RadioMelodieBridge extends BridgeAbstract {
|
||||
|
||||
$item['enclosures'] = array($pictureURL);
|
||||
$item['uri'] = SELF::URI . $element->parent()->href;
|
||||
$item['title'] = $element->find('h3',0)->plaintext;
|
||||
$item['content'] = $element->find('p',0)->plaintext . '<br/><img src="'.$pictureURL.'"/>';
|
||||
$item['title'] = $element->find('h3', 0)->plaintext;
|
||||
$item['content'] = $element->find('p', 0)->plaintext . '<br/><img src="'.$pictureURL.'"/>';
|
||||
$this->items[] = $item;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user