Created
April 11, 2022 02:55
-
-
Save intrnl/f7ced6833ca6a1d353dd8742c7917db5 to your computer and use it in GitHub Desktop.
Tachiyomi backup protobuf schema
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
syntax = "proto3"; | |
package TachiyomiBackup; | |
// based on commit 5afff31f7246d0ede03344c955a47f4817e9fb92 | |
message BackupManga { | |
int64 source = 1; | |
string url = 2; | |
string title = 3; | |
optional string artist = 4; | |
optional string author = 5; | |
optional string description = 6; | |
repeated string genre = 7; | |
int32 status = 8; | |
optional string thumbnailUrl = 9; | |
// string customCover = 10; | |
// int64 lastUpdate = 11; | |
// int64 lastInit = 12; | |
int64 dateAdded = 13; | |
int32 viewer = 14; | |
// int32 flags = 15; | |
repeated BackupChapter chapters = 16; | |
repeated int32 categories = 17; | |
repeated BackupTracking tracking = 18; | |
bool favorite = 100; | |
int32 chapterFlags = 101; | |
repeated BrokenBackupHistory brokenHistory = 102; | |
optional int32 viewer_flags = 103; | |
repeated BackupHistory history = 104; | |
} | |
message BackupChapter { | |
string url = 1; | |
string name = 2; | |
optional string scanlator = 3; | |
bool read = 4; | |
bool bookmark = 5; | |
int32 lastPageRead = 6; | |
int64 dateFetch = 7; | |
int64 dateUpload = 8; | |
float chapterNumber = 9; | |
int32 sourceOrder = 10; | |
} | |
message BackupTracking { | |
int32 syncId = 1; | |
int64 libraryId = 2; | |
int32 mediaId = 3; | |
string trackingUrl = 4; | |
string title = 5; | |
float lastChapterRead = 6; | |
int32 totalChapters = 7; | |
float score = 8; | |
int32 status = 9; | |
int64 startedReadingDate = 10; | |
int64 finishedReadingDate = 11; | |
} | |
message BackupCategory { | |
string name = 1; | |
int32 order = 2; | |
// int32 updateInterval = 3; | |
int32 flags = 100; | |
} | |
message BackupSource { | |
string name = 1; | |
int64 sourceId = 2; | |
} | |
message BackupHistory { | |
string url = 1; | |
int64 lastRead = 2; | |
} | |
message BrokenBackupSource { | |
string name = 0; | |
int64 sourceId = 1; | |
} | |
message BrokenBackupHistory { | |
string url = 0; | |
int64 lastRead = 1; | |
} | |
message Backup { | |
repeated BackupManga backupManga = 1; | |
repeated BackupCategory backupCategories = 2; | |
repeated BrokenBackupSource backupBrokenSources = 100; | |
repeated BackupSource backupSources = 101; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment