mirror of
https://github.com/transmission/transmission.git
synced 2025-12-20 02:18:42 +00:00
fix: only torrent metainfo display-name as a fallback (#5378)
Fixes #5347.
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user