From 2a1d5bdaebcb71d24c8f3d6dc71c0e7a136d4c51 Mon Sep 17 00:00:00 2001 From: vvzvlad Date: Tue, 4 Mar 2025 03:24:23 +1000 Subject: [PATCH] Update README with exclude_text parameter documentation --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 7abd4b3..0e51d4d 100644 --- a/README.md +++ b/README.md @@ -84,6 +84,8 @@ TIME_BASED_MERGE - optional, if set to true, will merge posts by time. Merge tim ``` curl https://pgbridge.example.com/rss/DragorWW_space?limit=30 ``` with limit parameter (also, can be used with token) ``` curl https://pgbridge.example.com/rss/DragorWW_space?merge_seconds=10 ``` with merge_seconds parameter ``` curl https://pgbridge.example.com/rss/DragorWW_space?exclude_flags=video,stream,donat,clown ``` with exclude_flags parameter +``` curl https://pgbridge.example.com/rss/DragorWW_space?exclude_text=реклама,акция ``` with exclude_text parameter +``` curl https://pgbridge.example.com/rss/DragorWW_space?exclude_text="специальное предложение",акция ``` with exclude_text parameter containing phrases with spaces Warning: TG API has rate limit, and bridge will wait time before http response, if catch FloodWait exception. Increase http timeout in your client prevention timeout error. Examply, in miniflux: ENV HTTP_CLIENT_TIMEOUT=200 @@ -124,3 +126,15 @@ Or use meta-flag "all" to exclude all flags in posts: ``` curl https://pgbridge.example.com/rss/DragorWW_space?exclude_flags=all ``` +## Exclude text + +You can filter out posts containing specific words or phrases using the `exclude_text` parameter. This allows for more flexible content filtering beyond the predefined flags. + +For simple words without spaces: +``` curl https://pgbridge.example.com/rss/DragorWW_space?exclude_text=реклама,промо,акция ``` + +For phrases containing spaces, use quotes: +``` curl https://pgbridge.example.com/rss/DragorWW_space?exclude_text="специальное предложение","только сегодня",акция ``` + +The filtering is case-insensitive and will exclude any post containing any of the specified words or phrases. +