diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 3df0b665..757f7fa4 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -29,8 +29,8 @@ android { applicationId = "org.grakovne.lissen" minSdk = 28 targetSdk = 35 - versionCode = 58 - versionName = "1.1.27" + versionCode = 59 + versionName = "1.1.28" testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner" vectorDrawables { diff --git a/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/common/converter/LibraryPageResponseConverter.kt b/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/common/converter/LibraryPageResponseConverter.kt index 0527b010..5fa2d1cf 100644 --- a/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/common/converter/LibraryPageResponseConverter.kt +++ b/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/common/converter/LibraryPageResponseConverter.kt @@ -14,11 +14,6 @@ class LibraryPageResponseConverter @Inject constructor() { .mapNotNull { val title = it.media.metadata.title ?: return@mapNotNull null - val hasMediaItems = it.media.numAudioFiles?.let { it > 0 } ?: true - if (hasMediaItems.not()) { - return@mapNotNull null - } - Book( id = it.id, title = title, diff --git a/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/library/converter/LibrarySearchItemsConverter.kt b/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/library/converter/LibrarySearchItemsConverter.kt index b6ed9dd4..95455264 100644 --- a/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/library/converter/LibrarySearchItemsConverter.kt +++ b/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/library/converter/LibrarySearchItemsConverter.kt @@ -11,11 +11,6 @@ class LibrarySearchItemsConverter @Inject constructor() { .mapNotNull { val title = it.media.metadata.title ?: return@mapNotNull null - val hasMediaItems = it.media.numAudioFiles?.let { it > 0 } ?: true - if (hasMediaItems.not()) { - return@mapNotNull null - } - Book( id = it.id, title = title, diff --git a/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/library/model/LibraryItemsResponse.kt b/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/library/model/LibraryItemsResponse.kt index 76435a07..ad2bab82 100644 --- a/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/library/model/LibraryItemsResponse.kt +++ b/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/library/model/LibraryItemsResponse.kt @@ -13,7 +13,6 @@ data class LibraryItem( data class Media( val duration: Double, val metadata: LibraryMetadata, - val numAudioFiles: Int?, ) data class LibraryMetadata( diff --git a/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/podcast/converter/PodcastPageResponseConverter.kt b/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/podcast/converter/PodcastPageResponseConverter.kt index b0651ad2..505ec47d 100644 --- a/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/podcast/converter/PodcastPageResponseConverter.kt +++ b/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/podcast/converter/PodcastPageResponseConverter.kt @@ -14,11 +14,6 @@ class PodcastPageResponseConverter @Inject constructor() { .mapNotNull { val title = it.media.metadata.title ?: return@mapNotNull null - val hasMediaItems = it.media.numAudioFiles?.let { it > 0 } ?: true - if (hasMediaItems.not()) { - return@mapNotNull null - } - Book( id = it.id, title = title, diff --git a/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/podcast/converter/PodcastSearchItemsConverter.kt b/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/podcast/converter/PodcastSearchItemsConverter.kt index d7a91528..ed790ddf 100644 --- a/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/podcast/converter/PodcastSearchItemsConverter.kt +++ b/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/podcast/converter/PodcastSearchItemsConverter.kt @@ -12,11 +12,6 @@ class PodcastSearchItemsConverter @Inject constructor() { .mapNotNull { val title = it.media.metadata.title ?: return@mapNotNull null - val hasMediaItems = it.media.numAudioFiles?.let { it > 0 } ?: true - if (hasMediaItems.not()) { - return@mapNotNull null - } - Book( id = it.id, title = title, diff --git a/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/podcast/model/PodcastItemsResponse.kt b/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/podcast/model/PodcastItemsResponse.kt index cdd58f35..3a5a4214 100644 --- a/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/podcast/model/PodcastItemsResponse.kt +++ b/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/podcast/model/PodcastItemsResponse.kt @@ -13,7 +13,6 @@ data class PodcastItem( data class PodcastItemMedia( val duration: Double, val metadata: PodcastMetadata, - val numAudioFiles: Int?, ) data class PodcastMetadata(