sim0n00ps / OF-DL

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

Unable to download purchase tab (JSON parsing error) #405

Closed myacct123 closed 2 weeks ago

myacct123 commented 2 weeks ago

I'm using 1.7.60 and trying to download the purchase tab

I believe my configs are all correct. This error happens after successful auth. Thank you for any help!

Valid version of Windows found.
auth.json located successfully!
config.json located successfully!
FFmpeg located successfully
device_client_id_blob and/or device_private_key missing, https://cdrm-project.com/ will be used instead for DRM
protected videos
Logged In successfully as removed
Exception caught: Error reading JObject from JsonReader. Current JsonReader item is not an object: StartArray. Path '', line 1, position 1.

  StackTrace:    at Newtonsoft.Json.Linq.JObject.Load(JsonReader reader, JsonLoadSettings settings)
   at Newtonsoft.Json.Linq.JObject.Parse(String json, JsonLoadSettings settings)
   at OF_DL.Helpers.APIHelper.GetUserInfoById(String endpoint)
Exception caught: Object reference not set to an instance of an object.

                                                                       StackTrace:    at OF_DL.Helpers.APIHelper.GetPurchasedTabUsers(String endpoint, IDownloadConfig config, Dictionary`2 users)
Checking folders for Users in Purchased Tab
Exception caught: Object reference not set to an instance of an object.

                                                                       StackTrace:    at OF_DL.Program.DownloadAllData(APIHelper m_ApiHelper, Auth Auth, Config Config)
   at OF_DL.Program.Main(String[] args)

Press any key to exit.
myacct123 commented 2 weeks ago

Downloading for individual users works. I believe the issue might be the large number of purchases I have. Thanks again for any help.

thatcoderguy commented 2 weeks ago

Can you put a copy of the latest log file in here? I'd like to have a crack at diagnosing this.

thatcoderguy commented 2 weeks ago

Are there any users who you've purchased content from that have since closed their account? I did a quick test, and put in a content creator ID which doesnt exist, and I get the exact same error message.

myacct123 commented 2 weeks ago

Yes, there a few. Is there any way to bypass this or download from deleted users anyways (the purchase is still available)? Thank you for your test

thatcoderguy commented 2 weeks ago

I've just written a fix for this, I'll create a pull request now... but I don't know when the next release will be, but if you know how to code in C# you should be able to pull the code and build the fix.

myacct123 commented 2 weeks ago

That's ok. I can wait. You're amazing!!