mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-11 11:04:36 +02:00
bridges: use BridgeAbstract::getSimpleHTMLDOM
instead of BridgeAbstract::file_get_html Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
@@ -40,11 +40,11 @@ class EZTVBridge extends BridgeAbstract{
|
||||
$this->returnClientError('You must provide a list of ID (?i=showID1,showID2,...)');
|
||||
|
||||
// Loop on show ids
|
||||
$showList = explode(",",$param['i']);
|
||||
$showList = explode(",",$param['i']);
|
||||
foreach($showList as $showID){
|
||||
|
||||
// Get show page
|
||||
$html = $this->file_get_html('https://eztv.ch/shows/'.rawurlencode($showID).'/') or $this->returnServerError('Could not request EZTV for id "'.$showID.'"');
|
||||
$html = $this->getSimpleHTMLDOM('https://eztv.ch/shows/'.rawurlencode($showID).'/') or $this->returnServerError('Could not request EZTV for id "'.$showID.'"');
|
||||
|
||||
// Loop on each element that look like an episode entry...
|
||||
foreach($html->find('.forum_header_border') as $element) {
|
||||
|
Reference in New Issue
Block a user