mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-04 18:14:44 +02:00
[bridges] use BridgeAbstract::getContents instead of file_get_contents
use of the proxy feature when enabled Signed-off-by: Pierre Mazière <pierre.maziere@gmx.com>
This commit is contained in:
parent
747e54d64a
commit
4a1f360d39
8 changed files with 10 additions and 10 deletions
|
@ -74,7 +74,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->returnServerError('Could not request Anime-Ultime: '.$item_uri);
|
||||
$html_item = $this->getContents($item_uri) or $this->returnServerError('Could not request Anime-Ultime: '.$item_uri);
|
||||
$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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue