Do not display playlist songs that can't be played

This commit is contained in:
vfsfitvnm 2022-08-02 12:49:28 +02:00
parent 751120e5d8
commit dccfdeed3d

View file

@ -99,6 +99,8 @@ fun PlaylistScreen(browseId: String) {
playlist = withContext(Dispatchers.IO) {
YouTube.playlistOrAlbum(browseId)?.map {
it.next()
}?.map { playlist ->
playlist.copy(items = playlist.items?.filter { it.info.endpoint != null })
}
}
}