From c903a2c51426992bcbf16959ff2a90596f4df495 Mon Sep 17 00:00:00 2001 From: Pablo Ogando Ferreira Date: Wed, 6 Mar 2024 17:20:09 +0100 Subject: [PATCH] Add maxResults to max value --- Command/DownloadVideosFromYouTubeChannel.php | 1 + Command/EstimatedStorageAccountCommand.php | 1 + Command/ImportVideosFromYouTubeChannel.php | 1 + 3 files changed, 3 insertions(+) diff --git a/Command/DownloadVideosFromYouTubeChannel.php b/Command/DownloadVideosFromYouTubeChannel.php index 30be46f..92cd85c 100644 --- a/Command/DownloadVideosFromYouTubeChannel.php +++ b/Command/DownloadVideosFromYouTubeChannel.php @@ -87,6 +87,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $queryParams = [ 'type' => 'video', 'forMine' => true, + 'maxResults' => 50, ]; $response = $service->search->listSearch('snippet', $queryParams); diff --git a/Command/EstimatedStorageAccountCommand.php b/Command/EstimatedStorageAccountCommand.php index 86e4be7..e1896b9 100644 --- a/Command/EstimatedStorageAccountCommand.php +++ b/Command/EstimatedStorageAccountCommand.php @@ -81,6 +81,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $queryParams = [ 'type' => 'video', 'forMine' => true, + 'maxResults' => 50, ]; if ($input->getOption('live')) { diff --git a/Command/ImportVideosFromYouTubeChannel.php b/Command/ImportVideosFromYouTubeChannel.php index b55657e..fe96528 100644 --- a/Command/ImportVideosFromYouTubeChannel.php +++ b/Command/ImportVideosFromYouTubeChannel.php @@ -120,6 +120,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $queryParams = [ 'type' => 'video', 'forMine' => true, + 'maxResults' => 50, ]; $response = $service->search->listSearch('snippet', $queryParams);