mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-20 05:13:18 -07:00
parent
55f1309140
commit
c064bc6d44
13 changed files with 219 additions and 65 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue