torrent cleanup

This commit is contained in:
royalcat 2024-11-15 16:39:56 +03:00
parent b069b3ad1c
commit fc6b838cf5
24 changed files with 1316 additions and 395 deletions

View file

@ -1,5 +1,6 @@
type Mutation {
torrentDaemon: TorrentDaemonMutation @resolver
qbitTorrentDaemon: QBitTorrentDaemonMutation @resolver
uploadFile(dir: String!, file: Upload!): Boolean!
dedupeStorage: Int!

View file

@ -1,6 +1,6 @@
type Query {
torrentDaemon: TorrentDaemonQuery @resolver
qbittorrentDaemon: QBitTorrentDaemonQuery @resolver
qbitTorrentDaemon: QBitTorrentDaemonQuery @resolver
fsEntry(path: String!): FsEntry
}

View file

@ -0,0 +1,8 @@
type QBitTorrentDaemonMutation {
cleanup(dryRun: Boolean!): QBitCleanupResponse! @resolver
}
type QBitCleanupResponse {
count: Int!
hashes: [String!]!
}