diff --git a/app/build.gradle.kts b/app/build.gradle.kts
index cdd2f5c9fc..f380939440 100644
--- a/app/build.gradle.kts
+++ b/app/build.gradle.kts
@@ -29,7 +29,7 @@ android {
minSdk = AndroidConfig.minSdk
targetSdk = AndroidConfig.targetSdk
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
- versionCode = 70
+ versionCode = 71
versionName = "0.12.3"
buildConfigField("String", "COMMIT_COUNT", "\"${getCommitCount()}\"")
diff --git a/app/src/main/java/eu/kanade/tachiyomi/Migrations.kt b/app/src/main/java/eu/kanade/tachiyomi/Migrations.kt
index a68762fa8a..fe4d13a51d 100644
--- a/app/src/main/java/eu/kanade/tachiyomi/Migrations.kt
+++ b/app/src/main/java/eu/kanade/tachiyomi/Migrations.kt
@@ -235,6 +235,14 @@ object Migrations {
preferences.enabledLanguages() += "all"
}
}
+ if (oldVersion < 71) {
+ // Handle removed every 3, 4, 6, and 8 hour library updates
+ val updateInterval = preferences.libraryUpdateInterval().get()
+ if (updateInterval in listOf(3, 4, 6, 8)) {
+ preferences.libraryUpdateInterval().set(12)
+ LibraryUpdateJob.setupTask(context, 12)
+ }
+ }
return true
}
diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsLibraryController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsLibraryController.kt
index 6e4fd5c8ca..a8e98b3236 100644
--- a/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsLibraryController.kt
+++ b/app/src/main/java/eu/kanade/tachiyomi/ui/setting/SettingsLibraryController.kt
@@ -139,16 +139,13 @@ class SettingsLibraryController : SettingsController() {
titleRes = R.string.pref_library_update_interval
entriesRes = arrayOf(
R.string.update_never,
- R.string.update_3hour,
- R.string.update_4hour,
- R.string.update_6hour,
- R.string.update_8hour,
R.string.update_12hour,
R.string.update_24hour,
R.string.update_48hour,
+ R.string.update_72hour,
R.string.update_weekly
)
- entryValues = arrayOf("0", "3", "4", "6", "8", "12", "24", "48", "168")
+ entryValues = arrayOf("0", "12", "24", "48", "72", "168")
defaultValue = "24"
summary = "%s"
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 1ef9c7bb47..d87ecd186d 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -211,13 +211,11 @@
Global update
Update frequency
Manual
- Every 3 hours
- Every 4 hours
Every 6 hours
- Every 8 hours
Every 12 hours
Daily
Every 2 days
+ Every 3 days
Weekly
Update order
Update restrictions