Check if Emby/Plex is enabled before starting the job

This commit is contained in:
Jamie.Rees 2017-02-01 08:31:13 +00:00
commit 4c79871bd7
5 changed files with 18 additions and 3 deletions

View file

@ -77,7 +77,10 @@ namespace Ombi.Services.Jobs
public void CacheContent()
{
var plexSettings = Plex.GetSettings();
if (!plexSettings.Enable)
{
return;
}
if (!ValidateSettings(plexSettings))
{
Log.Debug("Validation of the plex settings failed.");