mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
add torr name to empty title
This commit is contained in:
@@ -89,6 +89,10 @@ func addTorrent(req torrReqJS, c *gin.Context) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if tor.Title == "" {
|
||||||
|
tor.Title = tor.Name()
|
||||||
|
}
|
||||||
|
|
||||||
if req.SaveToDB {
|
if req.SaveToDB {
|
||||||
torr.SaveTorrentToDB(tor)
|
torr.SaveTorrentToDB(tor)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user