diff --git a/bridges/RutubeBridge.php b/bridges/RutubeBridge.php index 6ec830aa..39577575 100644 --- a/bridges/RutubeBridge.php +++ b/bridges/RutubeBridge.php @@ -80,8 +80,10 @@ class RutubeBridge extends BridgeAbstract $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'); }