Skip to content

Commit e79b275

Browse files
committed
Document the blacklist/title_re option and include an example of it
1 parent 99f18f8 commit e79b275

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ sites:
7373
imgur.com:
7474
blacklist:
7575
title: 'Imgur: The magic of the Internet'
76+
paste.ee:
77+
blacklist:
78+
title_re: ^Paste\.ee\ \-\ View\ paste\ .+
7679
youtube.com:
7780
blacklist:
7881
channels:
@@ -115,6 +118,9 @@ The channel comparison is case insensitive.
115118
* **`blacklist/title`**: This is a single string.
116119
If the title for a URL matching the site is this blacklisted string, the title is not posted.
117120
The comparison is case sensitive.
121+
* **`blacklist/title_re`**: This is a single regular expression pattern that is
122+
[searched](https://docs.python.org/3/library/re.html#re.search) for in the title.
123+
If the title for a URL matching the site is matched against this blacklisted pattern, the title is not posted.
118124
* **`format`**: This contains a list of entries, each of which have keys `re/title` and/or `re/url` along with
119125
`str/title`.
120126
* **`format/re/title`**: This is a single regular expression pattern that is

0 commit comments

Comments
 (0)