sim0n00ps / OF-DL

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

Program Crashes On Start Up #349

Closed NAMCO2000 closed 1 month ago

NAMCO2000 commented 2 months ago

Program crashes as soon as i start it so can't see error messages. Have attached files in case of imput error.

Have removed some letters/numbers from info in auth file that i'm uploading here. All quoatation marks & commas are the same in the undoctored file.

auth.json

config.json

sim0n00ps commented 2 months ago

You need to download ffmpeg, you have set the ffmpeg path to OF DL.exe which is not correct, it needs to be for ffmpeg.exe, also you need to replace the back slashes in the path with the forward slashes.

melithine commented 2 months ago

Also, the text for cookie should be immediately after the double quote in auth.json, currently it's on the next line.

NAMCO2000 commented 2 months ago

I have already DL ffmpeg. I created a folder which has the contents of the OF Downloader zip inside it. I put ffmpeg in this. I then copied path from ffmpeg & pasted this into config file.

sim0n00ps commented 2 months ago

Ok if you've put ffmpeg in the same folder as OF DL.exe then it will be automatically detected by the program so you can leave the ffmpeg path blank

NAMCO2000 commented 1 month ago

I just saw that as you said i had back slashes in ffmpeg path instead of forward slashes.

Will do as you say though.

Old path was "FFMPEG_PATH": "C:/Program Files/OF.DL/OF DL.exe"

New path would look like this "FFMPEG_PATH":

melithine commented 1 month ago

If you're setting it to auto detect, use two empty quotes, not nothing after the colon, that's not valid JSON.

NAMCO2000 commented 1 month ago

Am sorry to be such a noob but can you type it as it should be so i can just copy it into config file.

I'm presuming you mean this "FFMPEG_PATH": ""

I'm probably wrong though.

melithine commented 1 month ago

Assuming that that is in config.json and on the line you currently have it, use:

"FFmpegPath": "",

If you put it on the line right before the }, omit the final comma. (FFMPEG_PATH was only valid for auth.json.)

Also, for config.json, it's safe to paste into https://jsonlint.com/ if you need to test the syntax validity. (Less so with auth.json.) That won't be OF DL specific, but will catch general JSON formatting problems.

NAMCO2000 commented 1 month ago

Got it working now. Thx for the help.