1
0
Fork 0
mirror of https://github.com/lidarr/Lidarr synced 2025-01-02 21:15:05 +00:00

Fixed: Creating root folders without default tags

Fixes #4898
This commit is contained in:
Bogdan 2024-07-12 16:30:40 +03:00
parent 9045dea536
commit 2dec783272
2 changed files with 2 additions and 2 deletions

View file

@ -67,7 +67,7 @@ public static RootFolder ToModel(this RootFolderResource resource)
DefaultQualityProfileId = resource.DefaultQualityProfileId, DefaultQualityProfileId = resource.DefaultQualityProfileId,
DefaultMonitorOption = resource.DefaultMonitorOption, DefaultMonitorOption = resource.DefaultMonitorOption,
DefaultNewItemMonitorOption = resource.DefaultNewItemMonitorOption, DefaultNewItemMonitorOption = resource.DefaultNewItemMonitorOption,
DefaultTags = resource.DefaultTags, DefaultTags = resource.DefaultTags ?? new HashSet<int>()
}; };
} }

View file

@ -12,7 +12,7 @@ public class RootFolder : ModelBase
public int DefaultQualityProfileId { get; set; } public int DefaultQualityProfileId { get; set; }
public MonitorTypes DefaultMonitorOption { get; set; } public MonitorTypes DefaultMonitorOption { get; set; }
public NewItemMonitorTypes DefaultNewItemMonitorOption { get; set; } public NewItemMonitorTypes DefaultNewItemMonitorOption { get; set; }
public HashSet<int> DefaultTags { get; set; } public HashSet<int> DefaultTags { get; set; } = new ();
public bool Accessible { get; set; } public bool Accessible { get; set; }
public long? FreeSpace { get; set; } public long? FreeSpace { get; set; }