This commit is contained in:
YouROK
2020-11-19 15:19:26 +03:00
parent 835ce5c12a
commit f5827b8424
4 changed files with 8 additions and 38 deletions

View File

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