mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 13:10:13 -07:00
Fixed: Error message when adding a Plex server without a TV library
This commit is contained in:
parent
52fbdeaa53
commit
ad50be9daf
1 changed files with 11 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
|
|
||||||
namespace NzbDrone.Core.Notifications.Plex.Models
|
namespace NzbDrone.Core.Notifications.Plex.Models
|
||||||
|
@ -11,6 +11,11 @@ namespace NzbDrone.Core.Notifications.Plex.Models
|
||||||
|
|
||||||
public class PlexSection
|
public class PlexSection
|
||||||
{
|
{
|
||||||
|
public PlexSection()
|
||||||
|
{
|
||||||
|
Locations = new List<PlexSectionLocation>();
|
||||||
|
}
|
||||||
|
|
||||||
[JsonProperty("key")]
|
[JsonProperty("key")]
|
||||||
public int Id { get; set; }
|
public int Id { get; set; }
|
||||||
|
|
||||||
|
@ -23,6 +28,11 @@ namespace NzbDrone.Core.Notifications.Plex.Models
|
||||||
|
|
||||||
public class PlexSectionsContainer
|
public class PlexSectionsContainer
|
||||||
{
|
{
|
||||||
|
public PlexSectionsContainer()
|
||||||
|
{
|
||||||
|
Sections = new List<PlexSection>();
|
||||||
|
}
|
||||||
|
|
||||||
[JsonProperty("Directory")]
|
[JsonProperty("Directory")]
|
||||||
public List<PlexSection> Sections { get; set; }
|
public List<PlexSection> Sections { get; set; }
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue