Do not display playlist songs that can't be played
This commit is contained in:
parent
751120e5d8
commit
dccfdeed3d
1 changed files with 2 additions and 0 deletions
|
@ -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 })
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue