mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
Update apihelper.go
This commit is contained in:
@@ -56,13 +56,10 @@ func AddTorrent(spec *torrent.TorrentSpec, title, poster string, data string, ca
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Category can be override
|
|
||||||
torr.Category = category
|
|
||||||
if torr.Category == "" {
|
if torr.Category == "" {
|
||||||
if torDB != nil {
|
torr.Category = category
|
||||||
|
if torr.Category == "" && torDB != nil {
|
||||||
torr.Category = torDB.Category
|
torr.Category = torDB.Category
|
||||||
// } else {
|
|
||||||
// torr.Category = "None"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -140,7 +137,7 @@ func SetTorrent(hashHex, title, poster, category string, data string) *Torrent {
|
|||||||
torr.Data = data
|
torr.Data = data
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
// update torrent data in DB
|
||||||
if torrDb != nil {
|
if torrDb != nil {
|
||||||
torrDb.Title = title
|
torrDb.Title = title
|
||||||
torrDb.Poster = poster
|
torrDb.Poster = poster
|
||||||
|
|||||||
Reference in New Issue
Block a user