torrent fix

This commit is contained in:
royalcat 2024-08-15 11:23:44 +03:00
parent 57ada71d36
commit e517332a65
26 changed files with 2240 additions and 850 deletions
ui/lib/api

View file

@ -1,25 +1,21 @@
mutation MarkTorrentDownload($infohash: String!) {
downloadTorrent(infohash: $infohash) {
task {
id
}
mutation MarkTorrentDownload($infohash: String!, $priority: TorrentPriority! = NORMAL) {
torrentDaemon {
setTorrentPriority(infohash: $infohash, priority: $priority)
}
}
query ListTorrents($downloading: Boolean) {
torrents(filter: {
downloading: {
eq: $downloading
}
}) {
name
infohash
bytesCompleted
bytesMissing
peers {
ip
downloadRate
clientName
query ListTorrents {
torrentDaemon {
torrents {
name
infohash
bytesCompleted
bytesMissing
peers {
ip
downloadRate
clientName
}
}
}
}