mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
Add category associated to each torrent
This commit is contained in:
@@ -18,9 +18,10 @@ import (
|
||||
)
|
||||
|
||||
type Torrent struct {
|
||||
Title string
|
||||
Poster string
|
||||
Data string
|
||||
Title string
|
||||
Category string
|
||||
Poster string
|
||||
Data string
|
||||
*torrent.TorrentSpec
|
||||
|
||||
Stat state.TorrentStat
|
||||
@@ -284,6 +285,7 @@ func (t *Torrent) Status() *state.TorrentStatus {
|
||||
st.Stat = t.Stat
|
||||
st.StatString = t.Stat.String()
|
||||
st.Title = t.Title
|
||||
st.Category = t.Category
|
||||
st.Poster = t.Poster
|
||||
st.Data = t.Data
|
||||
st.Timestamp = t.Timestamp
|
||||
|
||||
Reference in New Issue
Block a user