fix return torrent data

This commit is contained in:
YouROK
2021-01-26 10:39:22 +03:00
parent 630db66ee8
commit 6ca69fb51c
2 changed files with 2 additions and 0 deletions

View File

@@ -33,6 +33,7 @@ const (
type TorrentStatus struct { type TorrentStatus struct {
Title string `json:"title"` Title string `json:"title"`
Poster string `json:"poster"` Poster string `json:"poster"`
Data string `json:"data,omitempty"`
Timestamp int64 `json:"timestamp"` Timestamp int64 `json:"timestamp"`
Name string `json:"name,omitempty"` Name string `json:"name,omitempty"`
Hash string `json:"hash,omitempty"` Hash string `json:"hash,omitempty"`

View File

@@ -359,6 +359,7 @@ func (t *Torrent) Status() *state.TorrentStatus {
st.StatString = t.Stat.String() st.StatString = t.Stat.String()
st.Title = t.Title st.Title = t.Title
st.Poster = t.Poster st.Poster = t.Poster
st.Data = t.Data
st.Timestamp = t.Timestamp st.Timestamp = t.Timestamp
st.TorrentSize = t.Size st.TorrentSize = t.Size