Merge pull request #399 from spiky02plateau/feat/exclude-sources-banner-and-pipeline

feat: honor EXCLUDE_SOURCES env var in source count + pipeline filter
This commit is contained in:
Trevin Chow
2026-05-16 19:39:51 -07:00
committed by GitHub
5 changed files with 95 additions and 1 deletions
+1
View File
@@ -328,6 +328,7 @@ def get_config() -> dict[str, Any]:
('FROM_BROWSER', None),
('SETUP_COMPLETE', None),
('INCLUDE_SOURCES', ''),
('EXCLUDE_SOURCES', ''),
]
for key, default in keys:
@@ -128,6 +128,9 @@ def available_sources(config: dict[str, Any], requested_sources: list[str] | Non
available.append("pinterest")
if env.is_xquik_available(config):
available.append("xquik")
exclude = {s.strip().lower() for s in (config.get("EXCLUDE_SOURCES") or "").split(",") if s.strip()}
if exclude:
available = [s for s in available if s not in exclude]
return available