mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-20 15:22:17 +02:00
Fix some HTTP error codes (404->500)
This commit is contained in:
@@ -38,7 +38,7 @@ class AnimeUltimeBridge extends BridgeAbstract {
|
||||
//Retrive page contents
|
||||
$website = 'http://www.anime-ultime.net/';
|
||||
$url = $website.'history-0-1/'.$requestFilter;
|
||||
$html = file_get_html($url) or $this->returnError('Could not request Anime-Ultime: '.$url, 404);
|
||||
$html = file_get_html($url) or $this->returnError('Could not request Anime-Ultime: '.$url, 500);
|
||||
|
||||
//Relases are sorted by day : process each day individually
|
||||
foreach ($html->find('div.history', 0)->find('h3') as $daySection) {
|
||||
@@ -65,7 +65,7 @@ class AnimeUltimeBridge extends BridgeAbstract {
|
||||
if (!empty($item_uri)) {
|
||||
|
||||
//Retrieve description from description page and convert relative image src info absolute image src
|
||||
$html_item = file_get_contents($item_uri) or $this->returnError('Could not request Anime-Ultime: '.$item_uri, 404);
|
||||
$html_item = file_get_contents($item_uri) or $this->returnError('Could not request Anime-Ultime: '.$item_uri, 500);
|
||||
$item_description = substr($html_item, strpos($html_item, 'class="principal_contain" align="center">') + 41);
|
||||
$item_description = substr($item_description, 0, strpos($item_description, '<div id="table">'));
|
||||
$item_description = str_replace('src="images', 'src="'.$website.'images', $item_description);
|
||||
|
Reference in New Issue
Block a user