Finishing off the user management page #218 #359 #195

This commit is contained in:
Jamie.Rees 2016-11-15 15:01:38 +00:00
commit c064bc6d44
13 changed files with 219 additions and 65 deletions

View file

@ -471,10 +471,10 @@ namespace PlexRequests.Services.Jobs
{
var sections = PlexApi.GetLibrarySections(plexSettings.PlexAuthToken, plexSettings.FullUri);
List<PlexSearch> libs = new List<PlexSearch>();
var libs = new List<PlexSearch>();
if (sections != null)
{
foreach (var dir in sections.Directories)
foreach (var dir in sections.Directories ?? new List<Directory>())
{
var lib = PlexApi.GetLibrary(plexSettings.PlexAuthToken, plexSettings.FullUri, dir.Key);
if (lib != null)