Custom Comparisons
This documentation site is deprecated. Please visit the control panel at https://monitorss.xyz for all up-to-date functionality
Custom Comparisons are additional checks after the default algorithm determines whether an article is new or old. They can be accessed by the compare
command. Properties on the original article object are used. To get the original properties, use the dump
command with the original
argument. For nested keys, separate them with _
.
All comparison keys are from the original feed object, which can be accessed through the rss.dump original
command. If the values are not pure strings, they will get ignored (this includes dates).
To remove all settings, add the reset
argument, for example rss.compare reset
.
Blocking Comparisons
"blocking" comparisons will check additional article properties to attempt to block an article from sending after default algorithms mark an article as new.
An example use case is when you don't want articles with the same title to send.
Passing Comparisons
"passing" comparisons will check additional article properties to attempt to pass an article for it to send after default algorithms mark an article as old.
An example use case is when you want the same article that frequently changes description to repeatedly send.
If date checks are turned on, an article that passes p-comparisons will still be blocked if it is marked old via date checks.
Format
Example
Assume dump original
gives the file contents:
The first object is an example of an article object.
If you'd like the article to be delivered whenever the image.url
changes for any article, the command would be rss.compare +image_url
.
If you'd like the article to be delivered whenever the both the image.url
and the author
changes, the command would be rss.compare +image_url +author
.
If you'd like articles to be blocked if a title was already posted by another article, the command would be compare -title
.
If you'd like articles to be blocked if either the title
or the guid
was posted by another article, the command would be compare -title -guid
.
You can mix +
and -
as much as you'd like.
Last updated