1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-01-08 00:10:32 +00:00

RemotePlaylistManager: add helper method to get a playlist by its uid

This commit is contained in:
Haggai Eran 2024-08-02 13:43:25 +03:00 committed by Siddhesh Naik
parent f6dd49b71d
commit f53ee4b65e

View File

@ -26,6 +26,10 @@ public class RemotePlaylistManager {
return playlistRemoteTable.getPlaylists().subscribeOn(Schedulers.io());
}
public Flowable<List<PlaylistRemoteEntity>> getPlaylist(final long playlistId) {
return playlistRemoteTable.getPlaylist(playlistId).subscribeOn(Schedulers.io());
}
public Flowable<List<PlaylistRemoteEntity>> getPlaylist(final PlaylistInfo info) {
return playlistRemoteTable.getPlaylist(info.getServiceId(), info.getUrl())
.subscribeOn(Schedulers.io());