fix restoring backups from tachiyomi (that don't...

have any anime)
This commit is contained in:
jmir1 2021-07-02 23:44:39 +02:00
parent 45a50a7e91
commit 66a376a3a4

View file

@ -5,9 +5,9 @@ import kotlinx.serialization.protobuf.ProtoNumber
@Serializable
data class Backup(
@ProtoNumber(1) val backupManga: List<BackupManga>,
@ProtoNumber(1) val backupManga: List<BackupManga> = emptyList(),
@ProtoNumber(2) var backupCategories: List<BackupCategory> = emptyList(),
@ProtoNumber(3) val backupAnime: List<BackupAnime>,
@ProtoNumber(3) val backupAnime: List<BackupAnime> = emptyList(),
@ProtoNumber(4) var backupCategoriesAnime: List<BackupCategory> = emptyList(),
// Bump by 100 to specify this is a 0.x value
@ProtoNumber(100) var backupSources: List<BackupSource> = emptyList(),