File tree Expand file tree Collapse file tree
app/src/main/java/org/schabi/newpipe Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public interface PlaylistRemoteDAO extends BasicDAO<PlaylistRemoteEntity> {
3434
3535 @ Query ("SELECT * FROM " + REMOTE_PLAYLIST_TABLE + " WHERE "
3636 + REMOTE_PLAYLIST_ID + " = :playlistId" )
37- Flowable <List < PlaylistRemoteEntity > > getPlaylist (long playlistId );
37+ Flowable <PlaylistRemoteEntity > getPlaylist (long playlistId );
3838
3939 @ Query ("SELECT * FROM " + REMOTE_PLAYLIST_TABLE + " WHERE "
4040 + REMOTE_PLAYLIST_URL + " = :url AND " + REMOTE_PLAYLIST_SERVICE_ID + " = :serviceId" )
Original file line number Diff line number Diff line change @@ -26,6 +26,10 @@ public Flowable<List<PlaylistRemoteEntity>> getPlaylists() {
2626 return playlistRemoteTable .getPlaylists ().subscribeOn (Schedulers .io ());
2727 }
2828
29+ public Flowable <PlaylistRemoteEntity > getPlaylist (final long playlistId ) {
30+ return playlistRemoteTable .getPlaylist (playlistId ).subscribeOn (Schedulers .io ());
31+ }
32+
2933 public Flowable <List <PlaylistRemoteEntity >> getPlaylist (final PlaylistInfo info ) {
3034 return playlistRemoteTable .getPlaylist (info .getServiceId (), info .getUrl ())
3135 .subscribeOn (Schedulers .io ());
You can’t perform that action at this time.
0 commit comments