Do not display playlist songs that can't be played
This commit is contained in:
@@ -99,6 +99,8 @@ fun PlaylistScreen(browseId: String) {
|
|||||||
playlist = withContext(Dispatchers.IO) {
|
playlist = withContext(Dispatchers.IO) {
|
||||||
YouTube.playlistOrAlbum(browseId)?.map {
|
YouTube.playlistOrAlbum(browseId)?.map {
|
||||||
it.next()
|
it.next()
|
||||||
|
}?.map { playlist ->
|
||||||
|
playlist.copy(items = playlist.items?.filter { it.info.endpoint != null })
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user