This commit is contained in:
YouROK
2020-11-19 15:49:24 +03:00
parent d730c04c26
commit 9a69eb0e49
2 changed files with 0 additions and 5 deletions

View File

@@ -5,8 +5,6 @@ import (
"sort" "sort"
"sync" "sync"
"server/torr/state"
"github.com/anacrolix/torrent" "github.com/anacrolix/torrent"
"github.com/anacrolix/torrent/metainfo" "github.com/anacrolix/torrent/metainfo"
) )
@@ -20,8 +18,6 @@ type TorrentDB struct {
Timestamp int64 `json:"timestamp,omitempty"` Timestamp int64 `json:"timestamp,omitempty"`
Size int64 `json:"size,omitempty"` Size int64 `json:"size,omitempty"`
Files []state.TorrentFileStat `json:"files,omitempty"`
} }
type File struct { type File struct {

View File

@@ -16,7 +16,6 @@ func AddTorrentDB(torr *Torrent) {
t.Title = torr.Title t.Title = torr.Title
t.Poster = torr.Poster t.Poster = torr.Poster
t.Timestamp = time.Now().Unix() t.Timestamp = time.Now().Unix()
t.Files = torr.Status().FileStats
settings.AddTorrent(t) settings.AddTorrent(t)
} }