mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-21 13:53:19 -07:00
Short circuit when Plex hasn't been setup. Added Miniprofiler
This commit is contained in:
parent
0f34885444
commit
5d18877b49
8 changed files with 86 additions and 5 deletions
|
@ -66,6 +66,11 @@ namespace PlexRequests.Services.Jobs
|
|||
{
|
||||
var results = new PlexSearch();
|
||||
var settings = Plex.GetSettings();
|
||||
if (string.IsNullOrEmpty(settings.PlexAuthToken))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
var sections = PlexApi.GetLibrarySections(settings.PlexAuthToken, settings.FullUri);
|
||||
var tvSection = sections.Directories.FirstOrDefault(x => x.type.Equals(PlexMediaType.Show.ToString(), StringComparison.CurrentCultureIgnoreCase));
|
||||
var tvSectionId = tvSection?.Key;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue