mirror of
https://github.com/transmission/transmission
synced 2024-12-26 09:37:56 +00:00
fix: only torrent metainfo display-name as a fallback (#5378)
Fixes #5347.
This commit is contained in:
parent
ac4a793816
commit
0e2b8d721c
1 changed files with 1 additions and 1 deletions
|
@ -390,7 +390,7 @@ struct MetainfoHandler final : public transmission::benc::BasicHandler<MaxBencDe
|
|||
{
|
||||
tm_.addWebseed(value);
|
||||
}
|
||||
else if (pathIs(MagnetInfoKey, DisplayNameKey))
|
||||
else if (pathIs(MagnetInfoKey, DisplayNameKey) && std::empty(tm_.name()))
|
||||
{
|
||||
// compatibility with Transmission <= 3.0
|
||||
tm_.setName(value);
|
||||
|
|
Loading…
Reference in a new issue