add torr name to empty title

This commit is contained in:
YouROK
2021-03-11 20:05:31 +03:00
parent cb9655e67f
commit 9744982f79

View File

@@ -89,6 +89,10 @@ func addTorrent(req torrReqJS, c *gin.Context) {
return
}
if tor.Title == "" {
tor.Title = tor.Name()
}
if req.SaveToDB {
torr.SaveTorrentToDB(tor)
}