This allows filtering based on the filenames inside of torrents.
This plugin does not accept entries on its own, only rejects already accepted entries that do not pass your requirements. You'll need another filter plugin in the task to accept the entries you want.
content_filter
doesn't work with magnet links, as it works by analyzing the file list present in the .torrent file. You can include the magnets plugin to reject any magnet entries.
|---|---|---|
| Field | Default | Description |
| require
| None
| Reject the entry if none of the files in the torrent matches any of the masks |
| reject
| None
| Reject the entry if any of the files in the torrent matches any of the masks |
| require_all
| None
| Reject the entry if all of the masks do not match across the files in the torrent |
| reject_all
| None
| Reject the entry if all of the masks do match across the files in the torrent |
| require_mainfile
| false
| Reject the entry unless the torrent contains a single file or one of the files accounts for at least 90% of the size |
| strict
| false
| Reject the entry if content_filter
is unable to parse the torrent files |
| regexp_mode
| false
| Switches filename matching from filesystem patterns to case-insensitive Regular Expressions |
For the requirement and rejection fields, you can specify a single mask, a list of masks or an input plugin.
content_filter:
require: '*.mkv'
content_filter:
reject: '*.rar'
content_filter:
require:
- '*.mp4'
- '*.mkv'
reject: '*.wmv'
content_filter:
require_all:
- '*.mkv'
- '*.nfo'
content_filter:
require_mainfile: yes
regexp_list
content_filter:
regexp_mode: yes
require:
from:
- regexp_list: my-wanted-files