Update README with exclude_text parameter documentation
This commit is contained in:
@@ -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.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user