diff --git a/src/server/settings/torrent.go b/src/server/settings/torrent.go index 8c30e5a..809bef1 100644 --- a/src/server/settings/torrent.go +++ b/src/server/settings/torrent.go @@ -5,8 +5,6 @@ import ( "sort" "sync" - "server/torr/state" - "github.com/anacrolix/torrent" "github.com/anacrolix/torrent/metainfo" ) @@ -20,8 +18,6 @@ type TorrentDB struct { Timestamp int64 `json:"timestamp,omitempty"` Size int64 `json:"size,omitempty"` - - Files []state.TorrentFileStat `json:"files,omitempty"` } type File struct { diff --git a/src/server/torr/dbwrapper.go b/src/server/torr/dbwrapper.go index a90b3ad..324d5a7 100644 --- a/src/server/torr/dbwrapper.go +++ b/src/server/torr/dbwrapper.go @@ -16,7 +16,6 @@ func AddTorrentDB(torr *Torrent) { t.Title = torr.Title t.Poster = torr.Poster t.Timestamp = time.Now().Unix() - t.Files = torr.Status().FileStats settings.AddTorrent(t) }