[IPBBridge] fix: bug in feed detection logic

The previous author forgot to also append ".xml"
when actually fetching the detected feed.
This commit is contained in:
Dag 2022-03-25 14:49:57 +01:00
parent 35b905c074
commit 2bd3f22dd5

View file

@ -55,7 +55,7 @@ class IPBBridge extends FeedExpander {
$headers = get_headers($uri . '.xml'); $headers = get_headers($uri . '.xml');
if($headers[0] === 'HTTP/1.1 200 OK') { // Heureka! It's a valid feed! if($headers[0] === 'HTTP/1.1 200 OK') { // Heureka! It's a valid feed!
return $this->collectExpandableDatas($uri); return $this->collectExpandableDatas($uri . '.xml');
} }
// No valid feed, so do it the hard way // No valid feed, so do it the hard way