mirror of
https://gitlab.futo.org/videostreaming/grayjay.git
synced 2026-05-16 04:52:39 +02:00
Last queue playlist fix.
This commit is contained in:
@@ -388,9 +388,10 @@ class StatePlayer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (queueVideos != null) {
|
if (queueVideos != null) {
|
||||||
val playlist = Playlist("Last Queue", queueVideos);
|
val playlist = StatePlaylists.instance.getPlaylist(StatePlaylists.LAST_QUEUE_PLAYLIST_ID) ?: Playlist("Last Queue", queueVideos).apply {
|
||||||
playlist.id = StatePlaylists.LAST_QUEUE_PLAYLIST_ID
|
id = StatePlaylists.LAST_QUEUE_PLAYLIST_ID
|
||||||
StatePlaylists.instance.createOrUpdatePlaylist(playlist, isUserInteraction = false)
|
}
|
||||||
|
StatePlaylists.instance.createOrUpdatePlaylist(playlist)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
fun setQueuePosition(video: IPlatformVideo) {
|
fun setQueuePosition(video: IPlatformVideo) {
|
||||||
|
|||||||
Reference in New Issue
Block a user