Skip to content

Commit

Permalink
Merge tag v2.3.29 into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
roadiz-ci committed Oct 11, 2024
1 parent da0d04a commit 44ee451
Show file tree
Hide file tree
Showing 5 changed files with 26 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/MediaFinders/AbstractDeezerEmbedFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
5 changes: 5 additions & 0 deletions src/MediaFinders/AbstractMixcloudEmbedFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
7 changes: 6 additions & 1 deletion src/MediaFinders/AbstractPodcastFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -239,4 +239,9 @@ public function getThumbnailURL(): ?string
}
return null;
}

protected function areDuplicatesAllowed(): bool
{
return true;
}
}
5 changes: 5 additions & 0 deletions src/MediaFinders/AbstractSoundcloudEmbedFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
5 changes: 5 additions & 0 deletions src/MediaFinders/AbstractSpotifyEmbedFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,9 @@ public function getSource(array &$options = []): string

return $this->embedId;
}

protected function areDuplicatesAllowed(): bool
{
return true;
}
}

0 comments on commit 44ee451

Please sign in to comment.