Don't clobber torrent name with empty magnet display name

This commit is contained in:
Matt Joiner 2014-12-01 19:12:03 -06:00
parent 0a91eef496
commit 0f1342d7d1
1 changed files with 3 additions and 1 deletions

View File

@ -1538,7 +1538,9 @@ func (cl *Client) AddMagnet(uri string) (T Torrent, err error) {
if err != nil {
return
}
T.DisplayName = m.DisplayName
if m.DisplayName != "" {
T.DisplayName = m.DisplayName
}
return
}