mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
11.19k stars 913 forks source link

How to only download a specific file from Kemono? #2228

Closed a84r7a3rga76fg closed 2 years ago

a84r7a3rga76fg commented 2 years ago

What should I put in the config if I want to only download GIF files from Kemono?

kattjevfel commented 2 years ago
"extractor": {
    "kemonoparty": {
        "image-filter": "extension = 'gif'"
    }
}
a84r7a3rga76fg commented 2 years ago

It's returning this error [kemonoparty][warning] invalid syntax (<image filter>, line 1)

mikf commented 2 years ago

Replace the single = with a double ==. = is assignment, == is checking for equality.

a84r7a3rga76fg commented 2 years ago

"image-filter": "extension == 'gif', 'zip', 'rar'"

Is this how it should be if I only want to download gif, zip and rar files?

mikf commented 2 years ago

To check for multiple values, use "image-filter": "extension in ('gif', 'zip', 'rar')"

a84r7a3rga76fg commented 2 years ago

Works well, thanks for the quick help