1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-26 17:47:37 +00:00

fix: only torrent metainfo display-name as a fallback (#5378)

Fixes #5347.
This commit is contained in:
Charles Kerr 2023-04-12 17:26:43 -05:00 committed by GitHub
parent ac4a793816
commit 0e2b8d721c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -390,7 +390,7 @@ struct MetainfoHandler final : public transmission::benc::BasicHandler<MaxBencDe
{ {
tm_.addWebseed(value); tm_.addWebseed(value);
} }
else if (pathIs(MagnetInfoKey, DisplayNameKey)) else if (pathIs(MagnetInfoKey, DisplayNameKey) && std::empty(tm_.name()))
{ {
// compatibility with Transmission <= 3.0 // compatibility with Transmission <= 3.0
tm_.setName(value); tm_.setName(value);