mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2024-11-22 17:45:40 +03:00
[FeedItem] Filter duplicate enclosures
This commit is contained in:
parent
835af1faf1
commit
6293c3d33d
1 changed files with 1 additions and 1 deletions
|
@ -347,7 +347,7 @@ class FeedItem {
|
|||
$enclosure,
|
||||
FILTER_VALIDATE_URL, FILTER_FLAG_PATH_REQUIRED)) {
|
||||
Debug::log('Each enclosure must contain a scheme, host and path!');
|
||||
} else {
|
||||
} elseif(!in_array($enclosure, $this->enclosures)) {
|
||||
$this->enclosures[] = $enclosure;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue