mikf / gallery-dl

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

[Question][Kemono] using filter for posts IDs and post titles #6067

Closed AldebaraanMKII closed 1 month ago

AldebaraanMKII commented 1 month ago

gallery-dl -d "H:\Kemono" --filter "extension not in ('zip', '7z', 'rar') and postid > 123456 and 'WORDHERE' not in title" [URL]

I don`t know how to filter posts IDs nor exclude posts that have a certain word in it. The example i posted above only filters the filetypes. Any help?

mikf commented 1 month ago

postid should be id and needs to be converted to an actual number:

--filter "extension not in ('zip', '7z', 'rar') and int(id) > 123456 and 'WORDHERE' not in title"
AldebaraanMKII commented 1 month ago

Thanks. and it seems title needs to be str(title). So that it becomes

--filter "extension not in ('zip', '7z', 'rar') and int(id) > 123456 and 'WORDHERE' not in str(title)"