mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
add reader stat to torrent stat
This commit is contained in:
@@ -1,5 +1,9 @@
|
||||
package state
|
||||
|
||||
import (
|
||||
"server/torr/storage/reader"
|
||||
)
|
||||
|
||||
type TorrentStat int
|
||||
|
||||
func (t TorrentStat) String() string {
|
||||
@@ -62,6 +66,8 @@ type TorrentStatus struct {
|
||||
PiecesDirtiedGood int64 `json:"pieces_dirtied_good,omitempty"`
|
||||
PiecesDirtiedBad int64 `json:"pieces_dirtied_bad,omitempty"`
|
||||
|
||||
Readers []*reader.ReaderState `json:"readers,omitempty"`
|
||||
|
||||
FileStats []*TorrentFileStat `json:"file_stats,omitempty"`
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user