diff --git a/server/torr/apihelper.go b/server/torr/apihelper.go index d37ead9..7cc8786 100644 --- a/server/torr/apihelper.go +++ b/server/torr/apihelper.go @@ -52,8 +52,8 @@ 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.Title == "" && torr.Torrent != nil && torr.Torrent.Info() != nil { + torr.Title = torr.Info().Name } } if torr.Poster == "" {