Remove books from home screen
This commit is contained in:
parent
567c4d00f7
commit
1f2eb7a1ab
2 changed files with 6 additions and 2 deletions
|
@ -66,7 +66,10 @@ class JellyfinRepositoryImpl(private val jellyfinApi: JellyfinApi) : JellyfinRep
|
||||||
val items: List<BaseItemDto>
|
val items: List<BaseItemDto>
|
||||||
withContext(Dispatchers.IO) {
|
withContext(Dispatchers.IO) {
|
||||||
items =
|
items =
|
||||||
jellyfinApi.itemsApi.getResumeItems(jellyfinApi.userId!!).content.items ?: listOf()
|
jellyfinApi.itemsApi.getResumeItems(
|
||||||
|
jellyfinApi.userId!!,
|
||||||
|
includeItemTypes = listOf("Movie", "Episode"),
|
||||||
|
).content.items ?: listOf()
|
||||||
}
|
}
|
||||||
return items
|
return items
|
||||||
}
|
}
|
||||||
|
|
|
@ -57,7 +57,8 @@ constructor(
|
||||||
Timber.d("Collection type: ${view.collectionType}")
|
Timber.d("Collection type: ${view.collectionType}")
|
||||||
if (view.collectionType == "homevideos" ||
|
if (view.collectionType == "homevideos" ||
|
||||||
view.collectionType == "music" ||
|
view.collectionType == "music" ||
|
||||||
view.collectionType == "playlists"
|
view.collectionType == "playlists" ||
|
||||||
|
view.collectionType == "books"
|
||||||
) continue
|
) continue
|
||||||
val latestItems = jellyfinRepository.getLatestMedia(view.id)
|
val latestItems = jellyfinRepository.getLatestMedia(view.id)
|
||||||
if (latestItems.isEmpty()) continue
|
if (latestItems.isEmpty()) continue
|
||||||
|
|
Loading…
Reference in a new issue