mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
fix data override on torrent edit via web
This commit is contained in:
@@ -97,7 +97,12 @@ func addTorrent(req torrReqJS, c *gin.Context) {
|
||||
|
||||
tor, err := torr.AddTorrent(torrSpec, req.Title, req.Poster, req.Data, req.Category)
|
||||
|
||||
log.TLogln("Final torrent category:", tor.Category)
|
||||
if tor.Data != "" {
|
||||
log.TLogln("torrent data:", tor.Data)
|
||||
}
|
||||
if tor.Category != "" {
|
||||
log.TLogln("torrent category:", tor.Category)
|
||||
}
|
||||
|
||||
if err != nil {
|
||||
log.TLogln("error add torrent:", err)
|
||||
|
||||
Reference in New Issue
Block a user