Avnsx / fansly-downloader

Easy to use fansly.com content downloading tool. Written in python, but ships as a standalone Executable App for Windows too. Enjoy your Fansly content offline anytime, anywhere in the highest possible content resolution! Fully customizable to download in bulk or single: photos, videos & audio from timeline, messages, collection & specific posts 👍
https://fansly.com/
GNU General Public License v3.0
1.29k stars 65 forks source link

Set of Images (single post) Download Issue #172

Open Oldgit13 opened 1 year ago

Oldgit13 commented 1 year ago

Bug Description

Images in a set (single post) are not all being saved correctly with the meta handling set to advanced in the config file.

Expected behavior

Downloads for example 10 images in a 10 image set.

Actual behavior

Downloads 10 of the 10 images but overwrites with varying levels for example 3 of the images leaving 7 saved to disk.

Additional context

So using metadata handling set to advanced in the single post set of images it saves with the date and time "2023-10-24_at_15-47.jpg" sometimes some of the images have the same date and time so it overwrites the first instance of the downloaded file with the same corresponding filename. This does not happen with metadata handling set to simple since it adds the unique identifier to the filename.

Oldgit13 commented 1 year ago

As a work around for myself I just added the id to the file name on line 720 which has helped.

From - f"{created_at}.{file_extension}" To - f"{created_at}id{media_id}.{file_extension}"

Perhaps some sort of incremental filename index could be useful.

grummmm commented 1 year ago

i had the same issue, your fix worked. thank you for sharing!