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:
@@ -73,7 +73,12 @@ func torrentUpload(c *gin.Context) {
|
||||
|
||||
tor, err = torr.AddTorrent(spec, title, poster, data, 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 upload torrent:", err)
|
||||
|
||||
Reference in New Issue
Block a user