mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-14 02:37:08 -07:00
Fixed: Avoid default category on existing Transmission configurations
Co-authored-by: Mark McDowall <mark@mcdowall.ca> (cherry picked from commit bd656ae7f66fc9224ef2a57857152ee5d54d54f8)
This commit is contained in:
parent
6150a57596
commit
280c0f05cf
1 changed files with 12 additions and 0 deletions
|
@ -50,6 +50,18 @@ namespace NzbDrone.Core.Download.Clients.Transmission
|
|||
MusicCategory = musicCategory;
|
||||
}
|
||||
|
||||
// TODO: Remove this in v5
|
||||
// This constructor is used when deserializing from JSON, it will set the
|
||||
// category to the deserialized value, defaulting to null.
|
||||
[JsonConstructor]
|
||||
public TransmissionSettings(string tvCategory = null)
|
||||
{
|
||||
Host = "localhost";
|
||||
Port = 9091;
|
||||
UrlBase = "/transmission/";
|
||||
TvCategory = tvCategory;
|
||||
}
|
||||
|
||||
[FieldDefinition(0, Label = "Host", Type = FieldType.Textbox)]
|
||||
public string Host { get; set; }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue