1
0
mirror of https://github.com/RSS-Bridge/rss-bridge.git synced 2025-01-17 14:18:35 +01:00

[RutubeBridge] Fix playlist mode returning empty result (#4184)

This commit is contained in:
Eugene Molotov 2024-08-02 20:44:46 +05:00 committed by GitHub
parent 0051e0fcdd
commit 401cc187b7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -80,8 +80,10 @@ class RutubeBridge extends BridgeAbstract
$videos = $reduxState->userChannel->videos->results; $videos = $reduxState->userChannel->videos->results;
$this->title = $reduxState->userChannel->info->name; $this->title = $reduxState->userChannel->info->name;
} elseif ($this->getInput('p')) { } elseif ($this->getInput('p')) {
$videos = $reduxState->playlist->data->results; $playListVideosMethod = 'getPlaylistVideos(' . $this->getInput('p') . ')';
$this->title = $reduxState->playlist->title; $videos = $reduxState->api->queries->$playListVideosMethod->data->results;
$playListMethod = 'getPlaylist(' . $this->getInput('p') . ')';
$this->title = $reduxState->api->queries->$playListMethod->data->title;
} elseif ($this->getInput('s')) { } elseif ($this->getInput('s')) {
$this->title = 'Поиск ' . $this->getInput('s'); $this->title = 'Поиск ' . $this->getInput('s');
} }