diff --git a/server/web/api/upload.go b/server/web/api/upload.go index b472a89..e9fda01 100644 --- a/server/web/api/upload.go +++ b/server/web/api/upload.go @@ -59,6 +59,10 @@ func torrentUpload(c *gin.Context) { return } + if tor.Title == "" { + tor.Title = tor.Name() + } + if save { torr.SaveTorrentToDB(tor) }