diff --git a/Command/DownloadVideosFromYouTubeChannel.php b/Command/DownloadVideosFromYouTubeChannel.php index 2476811..4c09711 100644 --- a/Command/DownloadVideosFromYouTubeChannel.php +++ b/Command/DownloadVideosFromYouTubeChannel.php @@ -65,7 +65,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $channel = $input->getOption('channel'); $limit = (int) $input->getOption('limit'); - $youtubeAccount = $this->ensureYouTubeAccountExists($input); + $this->ensureYouTubeAccountExists($input); $multimediaObjects = $this->documentManager->getRepository(MultimediaObject::class)->findBy([ 'status' => ['$in' => [MultimediaObject::STATUS_PUBLISHED, MultimediaObject::STATUS_HIDDEN]], @@ -193,7 +193,7 @@ private function createChannelDir(string $channelId): void } } - private function ensureYouTubeAccountExists(InputInterface $input): Tag + private function ensureYouTubeAccountExists(InputInterface $input): void { $youtubeAccount = $this->documentManager->getRepository(Tag::class)->findOneBy([ 'properties.login' => $input->getOption('account'), @@ -202,8 +202,6 @@ private function ensureYouTubeAccountExists(InputInterface $input): Tag if (!$youtubeAccount) { throw new \Exception('Account not found'); } - - return $youtubeAccount; } }