mirror of
https://github.com/tachiyomiorg/tachiyomi-extensions-inspector.git
synced 2024-12-25 00:01:49 +01:00
export extensions
This commit is contained in:
parent
b0e90c2f63
commit
47fcf7eb97
@ -121,6 +121,8 @@ object LegacyBackupExport {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// TODO the rest
|
||||||
|
|
||||||
return entry
|
return entry
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -130,8 +132,8 @@ object LegacyBackupExport {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun backupExtensionInfo(root: JsonArray, extensions: Set<String>) { // TODO
|
private fun backupExtensionInfo(root: JsonArray, extensions: Set<String>) { // TODO
|
||||||
// extensions.sorted().forEach {
|
extensions.sorted().forEach {
|
||||||
// root.add(it)
|
root.add(it)
|
||||||
// }
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -327,24 +327,24 @@ object JavalinSetup {
|
|||||||
|
|
||||||
// expects a Tachiyomi legacy backup file to be uploaded
|
// expects a Tachiyomi legacy backup file to be uploaded
|
||||||
app.get("/api/v1/backup/legacy/import") { ctx ->
|
app.get("/api/v1/backup/legacy/import") { ctx ->
|
||||||
// TODO
|
TODO()
|
||||||
}
|
}
|
||||||
|
|
||||||
// returns a Tachiyomi legacy backup file created from the current database
|
// returns a Tachiyomi legacy backup file created from the current database
|
||||||
app.get("/api/v1/backup/legacy/export") { ctx ->
|
app.get("/api/v1/backup/legacy/export") { ctx ->
|
||||||
ctx.contentType("application/json")
|
ctx.contentType("application/json")
|
||||||
ctx.result(
|
ctx.result(
|
||||||
future {
|
future {
|
||||||
createBackup(
|
createBackup(
|
||||||
BackupFlags(
|
BackupFlags(
|
||||||
includeManga = true,
|
includeManga = true,
|
||||||
includeCategories = true,
|
includeCategories = true,
|
||||||
includeChapters = true,
|
includeChapters = true,
|
||||||
includeTracking = true,
|
includeTracking = true,
|
||||||
includeHistory = true,
|
includeHistory = true,
|
||||||
)
|
|
||||||
)
|
)
|
||||||
}
|
)
|
||||||
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user