diff --git a/shares.py b/shares.py index ea124c748..00ce8f710 100644 --- a/shares.py +++ b/shares.py @@ -35,6 +35,7 @@ from utils import acctDir from utils import isfloat from media import processMetaData from filters import isFilteredGlobally +from siteactive import siteIsActive def _loadDfcIds(baseDir: str, systemLanguage: str) -> {}: @@ -1173,6 +1174,8 @@ def _updateFederatedSharesCache(session, sharedItemsFederatedDomains: [], if not tokensJson.get(federatedDomain): # token has been obtained for the other domain continue + if not siteIsActive(httpPrefix + '://' + federatedDomain): + continue url = httpPrefix + '://' + federatedDomain + '/catalog' asHeader['Authorization'] = tokensJson[federatedDomain] catalogJson = getJson(session, url, asHeader, None,