-
A common practice with artists who post their works on Patreon is using attachments to provide higher-quality versions of the images in the post. My understanding is that these are considered distinct files by gallery-dl. I use this value for the filename:
I notice that when downloading posts like described above, files are skipped as both the attachment version and post version of the image often have the same filename. In the handful of cases I manually checked, it seems that the higher quality attachment version is always downloaded over the lower-quality post version. I just wanted to make sure that it should always be the case that the Patreon extractor tries to download attachments first, resulting in the higher quality version of an image always being prioritized in this specific scenario. If not, how should I adjust my configuration to ensure I always get the higher-quality image? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
The order in which files are returned is gallery-dl/gallery_dl/extractor/patreon.py Lines 46 to 49 in b93915c So no, attachments are only second, but they do appear before the main Each file has a |
Beta Was this translation helpful? Give feedback.
The order in which files are returned is
images
,attachments
,postfile
,content
. There is currently no option to change that, i.e. it's hardcoded that way:gallery-dl/gallery_dl/extractor/patreon.py
Lines 46 to 49 in b93915c
So no, attachments are only second, but they do appear before the main
postfile
.Each file has a
hash
that can be used to distinguish between files with the samefilename
, as well as atype
and enumeration index (num
).