(domains: list[str])
| 321 | from core.adblock import refresh_all |
| 322 | |
| 323 | def _update(domains: list[str]) -> None: |
| 324 | self._adblock_hosts = load_host_rules(domains) |
| 325 | log.info( |
| 326 | "Adblock: rules updated — %d domains active", len(domains) |
| 327 | ) |
| 328 | |
| 329 | await refresh_all(self._adblock_urls, callback=_update) |
| 330 | except Exception as exc: |
nothing calls this directly
no test coverage detected