New option --filter-mime-type
Specify a list of mime types to be accepted / saved. All other responses / documents won't be saved to disk.
Format: --filter-mime-type=[list of mime types (comma separated)]
Default: off, same as --no-filter-mime-types
or --filter-mime-type=""
(empty list)
Algorithm: The 'result' starts with value 'yes': For each response each entry in the filter list must be checked. If the entry matches and begins with '!', 'result' is set to 'no'. If the entry matches and does not begin with '!', 'result' is set to 'yes'. At the end: Only if 'result' is 'yes' the document will be saved.
With this, we can easily deal with exceptions, e.g. 'Download all audios except WAVE files' would be
--filter-mime-type="audio/*,!audio/*wav,!audio/*wav,!audio/x-riff"
Another example 'Download everything except videos':
--filter-mime-type="*,!video/*"
Each mime type may begin with POSIX: (case-insensitive) to say it is a POSIX regex or with PCRE: (case-insensitive) to say it is a Perl regular expression. If none of these two types is given, the mime type may contain shell wildcards (*, ?, ...).