fix empty title

This commit is contained in:
YouROK
2021-03-24 15:31:22 +03:00
parent fd8d00ff02
commit 6d8c297df7

View File

@@ -59,6 +59,10 @@ func torrentUpload(c *gin.Context) {
return
}
if tor.Title == "" {
tor.Title = tor.Name()
}
if save {
torr.SaveTorrentToDB(tor)
}