4
0
mirror of https://github.com/AzuraCast/AzuraCast.git synced 2024-06-14 05:06:37 +00:00

Set explicit flag on new episodes.

This commit is contained in:
Buster Neece 2024-03-03 17:32:27 -06:00
parent 2f14540477
commit fa73cd82dc
No known key found for this signature in database

View File

@ -110,6 +110,9 @@ final class CheckPodcastPlaylistsTask extends AbstractTask
$podcastEpisode = new PodcastEpisode($podcast);
$podcastEpisode->setPlaylistMedia($media);
$podcastEpisode->setExplicit(false);
$podcastEpisode->setTitle($media->getTitle() ?? 'Untitled Episode');
$podcastEpisode->setDescription(
implode("\n", array_filter([
$media->getArtist(),
@ -117,7 +120,6 @@ final class CheckPodcastPlaylistsTask extends AbstractTask
$media->getLyrics(),
]))
);
$podcastEpisode->setTitle($media->getTitle() ?? 'Untitled Episode');
if (!$podcast->playlistAutoPublish()) {
// Set a date in the future to unpublish the episode.