This commit is contained in:
YouROK
2020-11-19 15:39:50 +03:00
parent f5827b8424
commit d730c04c26
3 changed files with 7 additions and 1 deletions

View File

@@ -29,6 +29,7 @@ func GetTorrentDB(hash metainfo.Hash) *Torrent {
torr.Title = db.Title
torr.Poster = db.Poster
torr.Timestamp = db.Timestamp
torr.Size = db.Size
torr.Stat = state.TorrentInDB
return torr
}
@@ -49,6 +50,7 @@ func ListTorrentsDB() map[metainfo.Hash]*Torrent {
torr.Title = db.Title
torr.Poster = db.Poster
torr.Timestamp = db.Timestamp
torr.Size = db.Size
torr.Stat = state.TorrentInDB
ret[torr.TorrentSpec.InfoHash] = torr
}