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>
|
||||
withContext(Dispatchers.IO) {
|
||||
items =
|
||||
jellyfinApi.itemsApi.getResumeItems(jellyfinApi.userId!!).content.items ?: listOf()
|
||||
jellyfinApi.itemsApi.getResumeItems(
|
||||
jellyfinApi.userId!!,
|
||||
includeItemTypes = listOf("Movie", "Episode"),
|
||||
).content.items ?: listOf()
|
||||
}
|
||||
return items
|
||||
}
|
||||
|
|
|
@ -57,7 +57,8 @@ constructor(
|
|||
Timber.d("Collection type: ${view.collectionType}")
|
||||
if (view.collectionType == "homevideos" ||
|
||||
view.collectionType == "music" ||
|
||||
view.collectionType == "playlists"
|
||||
view.collectionType == "playlists" ||
|
||||
view.collectionType == "books"
|
||||
) continue
|
||||
val latestItems = jellyfinRepository.getLatestMedia(view.id)
|
||||
if (latestItems.isEmpty()) continue
|
||||
|
|
Loading…
Reference in a new issue