mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-30 06:40:02 +02:00
bridges: Don't kill scripts with die()
Bridges should generally utilize the API functions instead of killing the script. Find more information on the Wiki. - returnServerError https://github.com/RSS-Bridge/rss-bridge/wiki/The-returnServerError-function - returnClientError https://github.com/RSS-Bridge/rss-bridge/wiki/The-returnClientError-function - returnError https://github.com/RSS-Bridge/rss-bridge/wiki/The-returnError-function
This commit is contained in:
parent
35bd706391
commit
3d231a417f
4 changed files with 16 additions and 14 deletions
|
@ -91,7 +91,8 @@ class Arte7Bridge extends BridgeAbstract {
|
|||
'Authorization: Bearer ' . self::API_TOKEN
|
||||
);
|
||||
|
||||
$input = getContents($url, $header) or die('Could not request ARTE.');
|
||||
$input = getContents($url, $header)
|
||||
or returnServerError('Could not request ARTE.');
|
||||
$input_json = json_decode($input, true);
|
||||
|
||||
foreach($input_json['videos'] as $element) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue