mikf / gallery-dl

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

[KemonoParty] TypeError: '>' not supported between instances of 'str' and 'int' #2548

Closed 501stRookie closed 2 years ago

501stRookie commented 2 years ago

I was trying to use the --filter option,

gallery-dl --filter "id > 3077202" https://kemono.party/fanbox/user/9609632

And I get the error message:

[kemonoparty][error] FilterError: Evaluating filter expression failed (TypeError: '>' not supported between instances of 'str' and 'int')

I think I was using the filter option right, but I am not sure. Am I doing something wrong?

If I remove the quotation parts around "id > 3077202" then the program doesn't download anything.

mikf commented 2 years ago

You are comparing a number (int, 3077202) with text (str, value of id). Convert id to a number to make this work: --filter "int(id) > 3077202"