Browse Source

Fix the Auto query for playlist to allow playlist containing streams

Before that we used the audio only query that filtered out the items that
only contains streams. This commit changes the query to all and then filter
all the playlist containing only video media
merge-requests/2174/head
Nicolas Pomepuy 2 years ago
parent
commit
b339a46175
  1. 2
      application/vlc-android/src/org/videolan/vlc/media/MediaSessionBrowser.kt

2
application/vlc-android/src/org/videolan/vlc/media/MediaSessionBrowser.kt

@ -294,7 +294,7 @@ class MediaSessionBrowser {
list = genres.copyOfRange(pageOffset.coerceAtMost(genres.size), (pageOffset + MAX_RESULT_SIZE).coerceAtMost(genres.size))
}
ID_PLAYLIST -> {
list = ml.getPlaylists(Playlist.Type.Audio, false)
list = ml.getPlaylists(Playlist.Type.All, false).toMutableList().filter { it.nbAudio > 0 || it.nbUnknown > 0}.toTypedArray()
list.sortWith(MediaComparators.ANDROID_AUTO)
}
ID_STREAM -> {

Loading…
Cancel
Save