mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
fix return torrent data
This commit is contained in:
@@ -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"`
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user