mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-04-16 20:00:55 +00:00
[FeedItem] Filter duplicate enclosures
This commit is contained in:
parent
835af1faf1
commit
6293c3d33d
@ -347,7 +347,7 @@ class FeedItem {
|
|||||||
$enclosure,
|
$enclosure,
|
||||||
FILTER_VALIDATE_URL, FILTER_FLAG_PATH_REQUIRED)) {
|
FILTER_VALIDATE_URL, FILTER_FLAG_PATH_REQUIRED)) {
|
||||||
Debug::log('Each enclosure must contain a scheme, host and path!');
|
Debug::log('Each enclosure must contain a scheme, host and path!');
|
||||||
} else {
|
} elseif(!in_array($enclosure, $this->enclosures)) {
|
||||||
$this->enclosures[] = $enclosure;
|
$this->enclosures[] = $enclosure;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user