diff --git a/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/library/converter/BookResponseConverter.kt b/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/library/converter/BookResponseConverter.kt index 8c9e82a0..54f38d79 100644 --- a/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/library/converter/BookResponseConverter.kt +++ b/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/library/converter/BookResponseConverter.kt @@ -76,7 +76,7 @@ class BookResponseConverter @Inject constructor() { ?: emptyList(), chapters = maybeChapters ?: filesAsChapters(), libraryId = item.libraryId, - localStored = false, + localProvided = false, progress = progressResponse ?.let { MediaProgress( diff --git a/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/podcast/converter/PodcastResponseConverter.kt b/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/podcast/converter/PodcastResponseConverter.kt index f4f521bc..f1e9450b 100644 --- a/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/podcast/converter/PodcastResponseConverter.kt +++ b/app/src/main/java/org/grakovne/lissen/channel/audiobookshelf/podcast/converter/PodcastResponseConverter.kt @@ -47,7 +47,7 @@ class PodcastResponseConverter @Inject constructor() { title = item.media.metadata.title, libraryId = item.libraryId, author = item.media.metadata.author, - localStored = false, + localProvided = false, files = orderedEpisodes ?.map { BookFile( diff --git a/app/src/main/java/org/grakovne/lissen/content/cache/converter/CachedBookEntityDetailedConverter.kt b/app/src/main/java/org/grakovne/lissen/content/cache/converter/CachedBookEntityDetailedConverter.kt index 864416e3..f24df2de 100644 --- a/app/src/main/java/org/grakovne/lissen/content/cache/converter/CachedBookEntityDetailedConverter.kt +++ b/app/src/main/java/org/grakovne/lissen/content/cache/converter/CachedBookEntityDetailedConverter.kt @@ -16,7 +16,7 @@ class CachedBookEntityDetailedConverter @Inject constructor() { title = entity.detailedBook.title, author = entity.detailedBook.author, libraryId = entity.detailedBook.libraryId, - localStored = true, + localProvided = true, files = entity.files.map { fileEntity -> BookFile( id = fileEntity.bookFileId, diff --git a/app/src/main/java/org/grakovne/lissen/domain/DetailedItem.kt b/app/src/main/java/org/grakovne/lissen/domain/DetailedItem.kt index 11781f12..56165d7b 100644 --- a/app/src/main/java/org/grakovne/lissen/domain/DetailedItem.kt +++ b/app/src/main/java/org/grakovne/lissen/domain/DetailedItem.kt @@ -10,7 +10,7 @@ data class DetailedItem( val chapters: List, val progress: MediaProgress?, val libraryId: String?, - val localStored: Boolean, + val localProvided: Boolean, ) : Serializable data class BookFile( diff --git a/app/src/main/java/org/grakovne/lissen/ui/screens/player/PlayerScreen.kt b/app/src/main/java/org/grakovne/lissen/ui/screens/player/PlayerScreen.kt index b1612372..af34c451 100644 --- a/app/src/main/java/org/grakovne/lissen/ui/screens/player/PlayerScreen.kt +++ b/app/src/main/java/org/grakovne/lissen/ui/screens/player/PlayerScreen.kt @@ -223,4 +223,4 @@ private fun playingItemChanged( private fun cachePolicyChanged( contentCachingModelView: ContentCachingModelView, playingBook: DetailedItem?, -) = contentCachingModelView.localCacheUsing() != playingBook?.localStored +) = contentCachingModelView.localCacheUsing() != playingBook?.localProvided diff --git a/app/src/main/res/values-ru/strings.xml b/app/src/main/res/values-ru/strings.xml index 0090345e..6ed20c3d 100644 --- a/app/src/main/res/values-ru/strings.xml +++ b/app/src/main/res/values-ru/strings.xml @@ -63,4 +63,19 @@ Нажмите чтобы запустить Загруженных подкастов нет Загрузки + Скачать + Скачать + Загрузки + Текущую главу + Текущий выпуск + Текущий элемент + Всю книгу + Все выпуски + Все элементы + Следуюшие %1$d глав + Следуюшие %1$d выпусков + Следуюшие %1$d элементов + Удалить загруженные главы + Удалить загруженные выпуски + Удалить загруженные элементы \ No newline at end of file diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 468d4e44..78b3330f 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -65,7 +65,7 @@ Downloads Download book Download podcast - Download + Downloads Current chapter Current episode Current item