[TwitchApiBridge] use BridgeAbstract::getSimpleHTMLDOM
Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
c54462d2f0
commit
bbf95662c2
1 changed files with 1 additions and 1 deletions
|
@ -129,7 +129,7 @@ class TwitchApiBridge extends BridgeAbstract{
|
||||||
|
|
||||||
/* Finally we're ready to request data from the API. Each response provides information for the next request. */
|
/* Finally we're ready to request data from the API. Each response provides information for the next request. */
|
||||||
for($i = 0; $i < $requests; $i++) {
|
for($i = 0; $i < $requests; $i++) {
|
||||||
$response = file_get_contents($request, false, $context);
|
$response = $this->getSimpleHTMLDOM($request, false, $context);
|
||||||
|
|
||||||
if($response == false) {
|
if($response == false) {
|
||||||
$this->returnServerError('Request failed! Check if the channel name is valid!');
|
$this->returnServerError('Request failed! Check if the channel name is valid!');
|
||||||
|
|
Loading…
Reference in a new issue