From 393033248cbdd7e5b9af806341d2dcc485ccff28 Mon Sep 17 00:00:00 2001 From: Eugene Molotov Date: Sat, 27 Jul 2024 15:24:32 +0500 Subject: [PATCH] [RutubeBridge] Fix playlist mode returning empty result --- bridges/RutubeBridge.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/bridges/RutubeBridge.php b/bridges/RutubeBridge.php index 6ec830aa9d44..b401f5b0d5ba 100644 --- a/bridges/RutubeBridge.php +++ b/bridges/RutubeBridge.php @@ -80,8 +80,10 @@ private function getVideosFromReduxState() $videos = $reduxState->userChannel->videos->results; $this->title = $reduxState->userChannel->info->name; } elseif ($this->getInput('p')) { - $videos = $reduxState->playlist->data->results; - $this->title = $reduxState->playlist->title; + $playListVideosMethod = "getPlaylistVideos(" . $this->getInput('p') . ")"; + $videos = $reduxState->api->queries->$playListVideosMethod->data->results; + $playListMethod = "getPlaylist(" . $this->getInput('p') . ")"; + $this->title = $reduxState->api->queries->$playListMethod->data->title; } elseif ($this->getInput('s')) { $this->title = 'Поиск ' . $this->getInput('s'); }