diff options
| author | dm <dm@work-pc> | 2022-02-16 12:06:25 +0800 |
|---|---|---|
| committer | Árni Dagur <arni@dagur.eu> | 2022-02-26 22:06:53 +0100 |
| commit | 86ba5b7a5f65b6579813b86a4414270f896e6424 (patch) | |
| tree | af72d518a9be2a57f58e78d57c4ee22fd369ea90 /adblock/__init__.py | |
| parent | c63e6534d9d00121e773688e2ccd897c93dbdc69 (diff) | |
feat: include complete redirect rule feature.
1. update adblock-rust => 0.4.3
2. add `include_redirect_urls` parameter for `FilterSet.add_filter_list` and `FilterSet.add_filters`
3. add `Engine.add_resource` method.
4. add `adblock.AddResourceError` Exception
5. add `redirect_type` for `BlockerResult`
6. add some tests for these functions.
Diffstat (limited to 'adblock/__init__.py')
| -rw-r--r-- | adblock/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/adblock/__init__.py b/adblock/__init__.py index 85d3614..4ba4c4b 100644 --- a/adblock/__init__.py +++ b/adblock/__init__.py | |||
| @@ -11,6 +11,7 @@ from adblock.adblock import ( | |||
| 11 | OptimizedFilterExistence, | 11 | OptimizedFilterExistence, |
| 12 | BadFilterAddUnsupported, | 12 | BadFilterAddUnsupported, |
| 13 | FilterExists, | 13 | FilterExists, |
| 14 | AddResourceError, | ||
| 14 | ) | 15 | ) |
| 15 | 16 | ||
| 16 | 17 | ||
| @@ -26,4 +27,5 @@ __all__ = ( | |||
| 26 | "OptimizedFilterExistence", | 27 | "OptimizedFilterExistence", |
| 27 | "BadFilterAddUnsupported", | 28 | "BadFilterAddUnsupported", |
| 28 | "FilterExists", | 29 | "FilterExists", |
| 30 | "AddResourceError", | ||
| 29 | ) | 31 | ) |
