mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
fill empty title if torrent loaded
This commit is contained in:
@@ -52,6 +52,9 @@ func AddTorrent(spec *torrent.TorrentSpec, title, poster string, data string) (*
|
||||
if title == "" && torDB != nil {
|
||||
torr.Title = torDB.Title
|
||||
}
|
||||
if torr.Title == "" && torr.Torrent != nil {
|
||||
torr.Title = torr.Name()
|
||||
}
|
||||
}
|
||||
if torr.Poster == "" {
|
||||
torr.Poster = poster
|
||||
|
||||
Reference in New Issue
Block a user