Просмотр исходного кода

Update homepage-connect-functions.php

mattohm 8 лет назад
Родитель
Сommit
743f31fcae
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      api/functions/homepage-connect-functions.php

+ 1 - 1
api/functions/homepage-connect-functions.php

@@ -842,7 +842,7 @@ function getCalendar()
 			foreach ($sonarrs as $key => $value) {
 			foreach ($sonarrs as $key => $value) {
 				try {
 				try {
 					$sonarr = new Kryptonit3\Sonarr\Sonarr($value['url'], $value['token']);
 					$sonarr = new Kryptonit3\Sonarr\Sonarr($value['url'], $value['token']);
-					$sonarrCalendar = getSonarrCalendar($sonarr->getCalendar($startDate, $endDate), $key);
+					$sonarrCalendar = getSonarrCalendar($sonarr->getCalendar($startDate, $endDate, $GLOBALS['sonarrUnmonitored']), $key);
 				} catch (Exception $e) {
 				} catch (Exception $e) {
 					writeLog('error', 'Sonarr Connect Function - Error: ' . $e->getMessage(), 'SYSTEM');
 					writeLog('error', 'Sonarr Connect Function - Error: ' . $e->getMessage(), 'SYSTEM');
 				}
 				}