Skip to content

Commit

Permalink
TTK-26901 refresh session on import data
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurujai committed Mar 6, 2024
1 parent ec73c73 commit 818a177
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Command/DownloadVideosFromYouTubeChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$queryParams['pageToken'] = $nextPageToken;
}

$service = $this->googleAccountService->googleServiceFromAccount($youtubeAccount);
$response = $service->search->listSearch('snippet', $queryParams);
$nextPageToken = $response->getNextPageToken();

Expand Down
1 change: 1 addition & 0 deletions Command/ImportVideosFromYouTubeChannel.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
$queryParams['pageToken'] = $nextPageToken;
}

$service = $this->googleAccountService->googleServiceFromAccount($youtubeAccount);
$response = $service->search->listSearch('snippet', $queryParams);
$nextPageToken = $response->getNextPageToken();
foreach ($response->getItems() as $item) {
Expand Down

0 comments on commit 818a177

Please sign in to comment.