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

@ -81,7 +81,10 @@ namespace Ombi.Services.Jobs
public void CheckAndUpdateAll()
{
var embySettings = Emby.GetSettings();
if (!embySettings.Enable)
{
return;
}
if (!ValidateSettings(embySettings))
{
Log.Debug("Validation of the Emby settings failed.");