From 1e4e547c476b0e71ca3d1f336db46bc721081c8f Mon Sep 17 00:00:00 2001 From: Pablo Ogando Ferreira Date: Fri, 9 Feb 2024 14:39:30 +0100 Subject: [PATCH] TTK-26792 fix record date. Use same as public date --- Command/ImportVideosFromYouTubeChannel.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Command/ImportVideosFromYouTubeChannel.php b/Command/ImportVideosFromYouTubeChannel.php index 55f53e8..2182976 100644 --- a/Command/ImportVideosFromYouTubeChannel.php +++ b/Command/ImportVideosFromYouTubeChannel.php @@ -248,6 +248,7 @@ private function autocompleteMultimediaObjectMetadata(MultimediaObject $multimed $multimediaObject->setProperty('youtube_import_channel', $youtubeInfo->id); $multimediaObject->setPublicDate(new \DateTime($youtubeInfo->snippet->publishedAt)); + $multimediaObject->setRecordDate(new \DateTime($youtubeInfo->snippet->publishedAt)); $multimediaObject->setStatus($this->convertYouTubeStatus($youtubeInfo->status->privacyStatus)); $this->addBasicTags($multimediaObject); $multimediaObject = $this->addKeywords($multimediaObject, $youtubeInfo);