Skip to content

Commit

Permalink
TTK-26792 fix record date. Use same as public date
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurujai committed Feb 9, 2024
1 parent 474bcd6 commit 1e4e547
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Command/ImportVideosFromYouTubeChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1e4e547

Please sign in to comment.