update web for categories

This commit is contained in:
nikk gitanes
2024-04-06 05:14:27 +03:00
parent 0e33bae9ae
commit de8137bfbf
10 changed files with 66 additions and 29 deletions

View File

@@ -61,8 +61,8 @@ func AddTorrent(spec *torrent.TorrentSpec, title, poster string, data string, ca
if torr.Category == "" {
if torDB != nil {
torr.Category = torDB.Category
} else {
torr.Category = "Unknown"
// } else {
// torr.Category = "None"
}
}
@@ -72,6 +72,7 @@ func AddTorrent(spec *torrent.TorrentSpec, title, poster string, data string, ca
torr.Poster = torDB.Poster
}
}
if torr.Data == "" {
torr.Data = data
if torr.Data == "" && torDB != nil {