Эх сурвалжийг харах

Remove "full_" from v3 backup default file names

arkon 4 жил өмнө
parent
commit
47a172df1f

+ 1 - 1
app/src/main/java/eu/kanade/tachiyomi/data/backup/full/FullBackupManager.kt

@@ -74,7 +74,7 @@ class FullBackupManager(context: Context) : AbstractBackupManager(context) {
 
                 // Delete older backups
                 val numberOfBackups = numberOfBackups()
-                val backupRegex = Regex("""tachiyomi_full_\d+-\d+-\d+_\d+-\d+.proto.gz""")
+                val backupRegex = Regex("""tachiyomi_\d+-\d+-\d+_\d+-\d+.proto.gz""")
                 dir.listFiles { _, filename -> backupRegex.matches(filename) }
                     .orEmpty()
                     .sortedByDescending { it.name }

+ 1 - 1
app/src/main/java/eu/kanade/tachiyomi/data/backup/full/models/BackupFull.kt

@@ -7,6 +7,6 @@ import java.util.Locale
 object BackupFull {
     fun getDefaultFilename(): String {
         val date = SimpleDateFormat("yyyy-MM-dd_HH-mm", Locale.getDefault()).format(Date())
-        return "tachiyomi_full_$date.proto.gz"
+        return "tachiyomi_$date.proto.gz"
     }
 }