sim0n00ps / OF-DL

C# console app to download all of the media from Onlyfans accounts with DRM video downloading support
744 stars 65 forks source link

wrong file name after last update #344

Closed Dex321x closed 4 months ago

Dex321x commented 5 months ago

With the latest version, I got the problem with files that have the wrong name. It appears that the folder name is added. The config was working fine before.

My config: "DownloadPath": "X:/xxx/onlyfans/0onlyfans-dl-database", "PaidPostFileNameFormat": "{postedAt}{username}{id}", "PostFileNameFormat": "{postedAt}{username}{id}", "PaidMessageFileNameFormat": "{createdAt}{username}{id}", "MessageFileNameFormat": "{createdAt}{username}_{id}", "RenameExistingFilesWhenCustomFormatIsSelected": false,

The file I got before: 2024-04-20_username_123456789.jpg The file I get now: 2024-04-220onlyfans-dl-databaseusername_123456789.jpg

--> it adds the onlyfans-dl-database to the file name, but I don't know why. --> another issue is that for another username, it doesn't change anything on the file name. It just downloads it with the source name: 0hozxbu3b111qoqg0qtp1_source.mp4

Any idea why this is happening? Is my config wrong?

melithine commented 5 months ago

I believe id is the id of the post/message and not the video/photo/etc. attached, so it's often not unique enough. mediaId should be part of the filename in case there are multiple videos/photos in the same post/message. I'm not 100% sure that's your problem, but it does jump out at me as being problematic.