diff --git a/src/server/torr/state/state.go b/src/server/torr/state/state.go index b4ea083..7e79ccf 100644 --- a/src/server/torr/state/state.go +++ b/src/server/torr/state/state.go @@ -33,6 +33,7 @@ const ( type TorrentStatus struct { Title string `json:"title"` Poster string `json:"poster"` + Data string `json:"data,omitempty"` Timestamp int64 `json:"timestamp"` Name string `json:"name,omitempty"` Hash string `json:"hash,omitempty"` diff --git a/src/server/torr/torrent.go b/src/server/torr/torrent.go index 7adb357..f17d9cc 100644 --- a/src/server/torr/torrent.go +++ b/src/server/torr/torrent.go @@ -359,6 +359,7 @@ func (t *Torrent) Status() *state.TorrentStatus { st.StatString = t.Stat.String() st.Title = t.Title st.Poster = t.Poster + st.Data = t.Data st.Timestamp = t.Timestamp st.TorrentSize = t.Size