fix dn to title with magnet

This commit is contained in:
YouROK
2021-04-28 16:04:08 +03:00
parent e58b2dd1a2
commit b96930d186

View File

@@ -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 == "" {