diff --git a/src/MediaFinders/AbstractDeezerEmbedFinder.php b/src/MediaFinders/AbstractDeezerEmbedFinder.php index bb2175c..27f23bf 100644 --- a/src/MediaFinders/AbstractDeezerEmbedFinder.php +++ b/src/MediaFinders/AbstractDeezerEmbedFinder.php @@ -165,4 +165,9 @@ public function getSource(array &$options = []): string // https://widget.deezer.com/widget/dark/playlist/9313425622 return $baseUri . '?' . http_build_query($queryString); } + + protected function areDuplicatesAllowed(): bool + { + return true; + } } diff --git a/src/MediaFinders/AbstractMixcloudEmbedFinder.php b/src/MediaFinders/AbstractMixcloudEmbedFinder.php index e110c32..3d3f1ca 100644 --- a/src/MediaFinders/AbstractMixcloudEmbedFinder.php +++ b/src/MediaFinders/AbstractMixcloudEmbedFinder.php @@ -145,4 +145,9 @@ public function getSource(array &$options = []): string return 'https://www.mixcloud.com/widget/iframe/?' . http_build_query($queryString); } + + protected function areDuplicatesAllowed(): bool + { + return true; + } } diff --git a/src/MediaFinders/AbstractPodcastFinder.php b/src/MediaFinders/AbstractPodcastFinder.php index 0dfb41a..fa238d0 100644 --- a/src/MediaFinders/AbstractPodcastFinder.php +++ b/src/MediaFinders/AbstractPodcastFinder.php @@ -107,7 +107,7 @@ public function createDocumentFromFeed( if (null !== $file) { $documentFactory->setFile($file); - $document = $documentFactory->getDocument(); + $document = $documentFactory->getDocument(false, $this->areDuplicatesAllowed()); if (null !== $document) { /* * Create document metas @@ -239,4 +239,9 @@ public function getThumbnailURL(): ?string } return null; } + + protected function areDuplicatesAllowed(): bool + { + return true; + } } diff --git a/src/MediaFinders/AbstractSoundcloudEmbedFinder.php b/src/MediaFinders/AbstractSoundcloudEmbedFinder.php index 49e0454..3d15b3d 100644 --- a/src/MediaFinders/AbstractSoundcloudEmbedFinder.php +++ b/src/MediaFinders/AbstractSoundcloudEmbedFinder.php @@ -154,4 +154,9 @@ public function getSource(array &$options = []): string return 'https://w.soundcloud.com/player/?' . http_build_query($queryString); } + + protected function areDuplicatesAllowed(): bool + { + return true; + } } diff --git a/src/MediaFinders/AbstractSpotifyEmbedFinder.php b/src/MediaFinders/AbstractSpotifyEmbedFinder.php index f9d1337..1fed0b8 100644 --- a/src/MediaFinders/AbstractSpotifyEmbedFinder.php +++ b/src/MediaFinders/AbstractSpotifyEmbedFinder.php @@ -153,4 +153,9 @@ public function getSource(array &$options = []): string return $this->embedId; } + + protected function areDuplicatesAllowed(): bool + { + return true; + } }