mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
fix: some livestreams are not filtered out in videos filter
This commit is contained in:
parent
69cf74e590
commit
4180ddee61
@ -24,7 +24,7 @@ data class StreamItem(
|
|||||||
val shortDescription: String? = null,
|
val shortDescription: String? = null,
|
||||||
val isShort: Boolean = false
|
val isShort: Boolean = false
|
||||||
) : Parcelable {
|
) : Parcelable {
|
||||||
val isLive get() = (duration ?: 0L) < 0L
|
val isLive get() = (duration != null) && (duration <= 0L)
|
||||||
|
|
||||||
fun toLocalPlaylistItem(playlistId: String): LocalPlaylistItem {
|
fun toLocalPlaylistItem(playlistId: String): LocalPlaylistItem {
|
||||||
return LocalPlaylistItem(
|
return LocalPlaylistItem(
|
||||||
|
Loading…
Reference in New Issue
Block a user