fill empty title

This commit is contained in:
YouROK
2021-04-27 11:28:58 +03:00
parent 22ad3547ed
commit 94b092b7d7

View File

@@ -111,6 +111,9 @@ func watchTDir(dir string) {
tor, err := torr.AddTorrent(sp, "", "", "")
if err == nil {
if tor.GotInfo() {
if tor.Title == "" {
tor.Title = tor.Name()
}
torr.SaveTorrentToDB(tor)
tor.Drop()
os.Remove(filename)