diff --git a/Command/ImportVideosFromYouTubeChannel.php b/Command/ImportVideosFromYouTubeChannel.php index 1e714e8..456e4cf 100644 --- a/Command/ImportVideosFromYouTubeChannel.php +++ b/Command/ImportVideosFromYouTubeChannel.php @@ -242,7 +242,7 @@ private function autocompleteMultimediaObjectMetadata(MultimediaObject $multimed $multimediaObject->setProperty('youtube_import_raw', $youtubeInfo); $multimediaObject->setProperty('youtube_import_id', $youtubeInfo->id); $multimediaObject->setProperty('youtube_import_type', 'video'); - $multimediaObject->setProperty('youtube_import_channel', $youtubeInfo->id); + $multimediaObject->setProperty('youtube_import_channel', $this->channelId); $multimediaObject->setPublicDate(new \DateTime()); $multimediaObject->setRecordDate(new \DateTime($youtubeInfo->snippet->publishedAt)); diff --git a/Resources/doc/ImportFromYoutube.md b/Resources/doc/ImportFromYoutube.md index adf5254..3d4607a 100644 --- a/Resources/doc/ImportFromYoutube.md +++ b/Resources/doc/ImportFromYoutube.md @@ -15,7 +15,7 @@ where ACCOUNT is the name added for YouTube tag created on PuMuKIT and CHANNEL_I ### 2. Import videos from YouTube -After download videos you will be able to import videos from YouTube to PuMuKIT using this command. +Before download videos you will be able to import videos from YouTube to PuMuKIT using this command. The command will be autocomplete metadata from YouTube and create a new video on PuMuKIT and move the video to the series created on step 1.