mikf / gallery-dl

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

[Coomer] --filter "extension not in ()" doesn't work on Fansly accounts #4561

Closed wave-dash closed 1 year ago

wave-dash commented 1 year ago

Running gallery-dl with this command:

gallery-dl -o headers.Referer="https://coomer.party/" --filter "extension not in ('jpg', 'png')" "%url%"

and this config:

"coomerparty":
{
  "directory": ["coomerparty - {user} - {service}"],
  "filename": "[{user}] {date:%Y-%m-%d_%H-%M-%S} {id} {num:>02} {title[:40]} {filename[:180]}.{extension}"
},

.jpg files are downloaded when run on a fansly URL (e.g. NSFW https://coomer.party/fansly/user/286621667281612800), but they aren't downloaded when run on an onlyfans URL (e.g. NSFW https://coomer.party/onlyfans/user/belledelphine).

mikf commented 1 year ago

The extension for most of these fansly images appears to be .jpeg rather than .jpg and gallery-dl currently only translates those later after --filter gets applied.

Update your --filter expression to the following and it should work:

--filter "extension not in ('jpg', 'jpeg', 'png')"