mirror of
https://github.com/TeamNewPipe/NewPipe
synced 2024-12-24 00:50:32 +00:00
-Fixed bookmarked playlist not updating metadata when changed.
This commit is contained in:
parent
5c202f04e7
commit
15fb60a845
@ -289,6 +289,7 @@ public class PlaylistFragment extends BaseListInfoFragment<PlaylistInfo> {
|
|||||||
remotePlaylistManager.getPlaylist(result)
|
remotePlaylistManager.getPlaylist(result)
|
||||||
.flatMap(lists -> getUpdateProcessor(lists, result), (lists, id) -> lists)
|
.flatMap(lists -> getUpdateProcessor(lists, result), (lists, id) -> lists)
|
||||||
.onBackpressureLatest()
|
.onBackpressureLatest()
|
||||||
|
.flatMap(lists -> getUpdateProcessor(lists, result), (lists, id) -> lists)
|
||||||
.observeOn(AndroidSchedulers.mainThread())
|
.observeOn(AndroidSchedulers.mainThread())
|
||||||
.subscribe(getPlaylistBookmarkSubscriber());
|
.subscribe(getPlaylistBookmarkSubscriber());
|
||||||
|
|
||||||
@ -354,7 +355,6 @@ public class PlaylistFragment extends BaseListInfoFragment<PlaylistInfo> {
|
|||||||
|
|
||||||
final PlaylistRemoteEntity playlistEntity = playlists.get(0);
|
final PlaylistRemoteEntity playlistEntity = playlists.get(0);
|
||||||
if (playlistEntity.isIdenticalTo(result)) return noItemToUpdate;
|
if (playlistEntity.isIdenticalTo(result)) return noItemToUpdate;
|
||||||
|
|
||||||
return remotePlaylistManager.onUpdate(playlists.get(0).getUid(), result).toFlowable();
|
return remotePlaylistManager.onUpdate(playlists.get(0).getUid(), result).toFlowable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user