mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-24 00:53:10 +02:00
Compare commits
1 Commits
dvikan-pat
...
fix2
Author | SHA1 | Date | |
---|---|---|---|
|
52ccf649cd |
@@ -95,6 +95,10 @@ abstract class FeedExpander extends BridgeAbstract {
|
|||||||
or returnServerError('Could not request ' . $url);
|
or returnServerError('Could not request ' . $url);
|
||||||
$rssContent = simplexml_load_string(trim($content));
|
$rssContent = simplexml_load_string(trim($content));
|
||||||
|
|
||||||
|
if ($rssContent === false) {
|
||||||
|
throw new \Exception('Unable to parse string as xml');
|
||||||
|
}
|
||||||
|
|
||||||
Debug::log('Detecting feed format/version');
|
Debug::log('Detecting feed format/version');
|
||||||
switch(true) {
|
switch(true) {
|
||||||
case isset($rssContent->item[0]):
|
case isset($rssContent->item[0]):
|
||||||
|
Reference in New Issue
Block a user