darkdragn / party

A quick *.party downloader
84 stars 12 forks source link

missing files when using --file-format "{ref.post_id}.{ref.extension}" #27

Closed MiMmmmiiii closed 7 months ago

MiMmmmiiii commented 7 months ago

I downloaded someone by using <party coomer onlyfans userID --file-format "{ref.post_id}.{ref.extension}">, found missing many photos and the total file counting is 86, so I try to use the common command , it all come back and the total file counting is 170, but if I use this command the filename seem not sorting by post date, is this a bug? 2023-11-25_224314 what command should I use if I want the file name sort by post date and keep downloading all files? and what is the command <--sluglify> in the end used for?

darkdragn commented 7 months ago

This is expected behavior, since a post with multiple files will have those files all named the same thing, overwriting each other with that file name formatting.

You need to use index to avoid that, or another unique identifier like name or file name. Index is the best option to avoid this issue.

Give the following file format a go and you'll see what I mean: "{ref.postid}{ref.index}.{ref.extension}"

Here recently, my favorite is: '{ref.post_id}_{ref.post_title}_{ref.index}.{ref.extension}'

darkdragn commented 7 months ago

Also, sliglify, I accidentally added a l in there when writing the CLI, lol. It will normalize the text. Spaces become -, emoji's go away, punctuation marks go away. It gets rid of all the things the filesystem might complain about when writing out the filename.

MiMmmmiiii commented 7 months ago

I see! Will try use your recommendation! But sluglify or sliglify? I think it's a type error. Thanks a lot!

darkdragn commented 7 months ago

Let me know how it turned out for you! I'm closing this for now.

MiMmmmiiii commented 7 months ago

Oh it's okay now, but I am a little confusing why I see it on coomer as below:

2023-12-01_073739 and it sorted by name show in my disk as: 2023-12-01_074009 Isn't that 807097507_8 should be the first one?

darkdragn commented 7 months ago

So, that boils down to post files vs post attachments. I append files at the end and allow for the --no-files flag because for most patreon creators the files are a duplicate of one of the attachments as a preview and a lower res image at that.

I can swap that pretty easily to have files added to the beginning or even have a flag to swap to either.

I hadn't realized some content creators were putting unique images for the beginning of a set as a files item on the set.

MiMmmmiiii commented 7 months ago

Anything I can do to make it right maybe? lol