You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TorrentSettings.cs : public string[] Files(Un)Wanted should be object[] as per specification. It is expecting and index (file index as an object). In he beginning I thought a filename was needed.
Did a local test myself and I can confirm this is working. Rest is fine. Thanks for the great C# llbrary.
Regards.
The text was updated successfully, but these errors were encountered:
Thanks for this tip. I wasn't able to set the wanted state until I used an object[] instead of a string[].
And the object[] contains the list of file indices, not filenames.
I replaced
public string[] FilesWanted { get { return GetValue<string[]>("files-wanted"); } set { this["files-wanted"] = value; } }
public string[] FilesUnwanted { get { return GetValue<string[]>("files-unwanted"); } set { this["files-unwanted"] = value; } }
with
public object[] FilesWanted { get { return GetValue<object[]>("files-wanted"); } set { this["files-wanted"] = value; } }
public object[] FilesUnwanted { get { return GetValue<object[]>("files-unwanted"); } set { this["files-unwanted"] = value; } }
TorrentSettings.cs : public string[] Files(Un)Wanted should be object[] as per specification. It is expecting and index (file index as an object). In he beginning I thought a filename was needed.
Did a local test myself and I can confirm this is working. Rest is fine. Thanks for the great C# llbrary.
Regards.
The text was updated successfully, but these errors were encountered: