Add category associated to each torrent

This commit is contained in:
LIAUD Corentin
2023-11-22 14:08:10 +01:00
parent 286609acec
commit 8c92856595
22 changed files with 171 additions and 70 deletions

View File

@@ -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