mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 04:18:39 +00:00
fix: no such file or directory warning in transmission-cli (#5426)
This commit is contained in:
@@ -259,7 +259,8 @@ int tr_main(int argc, char* argv[])
|
|||||||
|
|
||||||
tr_ctorSetPaused(ctor, TR_FORCE, false);
|
tr_ctorSetPaused(ctor, TR_FORCE, false);
|
||||||
|
|
||||||
if (tr_ctorSetMetainfoFromFile(ctor, torrentPath, nullptr) || tr_ctorSetMetainfoFromMagnetLink(ctor, torrentPath, nullptr))
|
if (tr_sys_path_exists(torrentPath) ? tr_ctorSetMetainfoFromFile(ctor, torrentPath, nullptr) :
|
||||||
|
tr_ctorSetMetainfoFromMagnetLink(ctor, torrentPath, nullptr))
|
||||||
{
|
{
|
||||||
// all good
|
// all good
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user