remove unused name from db

This commit is contained in:
YouROK
2021-03-11 14:47:40 +03:00
parent 542946b65a
commit c03ea41cb4
3 changed files with 0 additions and 6 deletions

View File

@@ -12,12 +12,8 @@ import (
func AddTorrentDB(torr *Torrent) {
t := new(settings.TorrentDB)
t.TorrentSpec = torr.TorrentSpec
t.Name = torr.Name()
t.Title = torr.Title
t.Data = torr.Data
if t.Title == "" {
t.Title = t.Name
}
t.Poster = torr.Poster
t.Size = torr.Size
if t.Size == 0 && torr.Torrent != nil {