diff --git a/server/torr/apihelper.go b/server/torr/apihelper.go index ee0b07f..d37ead9 100644 --- a/server/torr/apihelper.go +++ b/server/torr/apihelper.go @@ -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