fix(transmission): total download incorrect for cross seeded torrents (#3211)
This commit is contained in:
1 parent
6a908397cd
commit
0b4ca93aa1
3 files changed
+12
-3
No files matched your search
@@ -46,6 +46,7 @@ export class TransmissionIntegration extends Integration implements IDownloadCli
|
||||
name: torrent.name,
|
||||
size: torrent.totalSize,
|
||||
sent: torrent.uploadedEver,
|
||||
received: torrent.downloadedEver,
|
||||
downSpeed: torrent.percentDone !== 1 ? torrent.rateDownload : undefined,
|
||||
upSpeed: torrent.rateUpload,
|
||||
time:
|
||||
|
||||
@@ -26,6 +26,8 @@ export const downloadClientItemSchema = z.object({
|
||||
size: z.number(),
|
||||
/** Total uploaded in Bytes, only required for Torrent items */
|
||||
sent: z.number().optional(),
|
||||
/** Total downloaded in Bytes, only required for Torrent items */
|
||||
received: z.number().optional(),
|
||||
/** Download speed in Bytes/s, only required if not complete
|
||||
* (Says 0 only if it should be downloading but isn't) */
|
||||
downSpeed: z.number().optional(),
|
||||
|
||||
Reference in new issue
Block a user