Skip to content

Commit

Permalink
[RutubeBridge] Fix playlist mode returning empty result (RSS-Bridge#4184
Browse files Browse the repository at this point in the history
)
  • Loading branch information
em92 committed Aug 2, 2024
1 parent 0051e0f commit 401cc18
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions bridges/RutubeBridge.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}
Expand Down

0 comments on commit 401cc18

Please sign in to comment.