some videos cannot be downloaded #76

Closed
opened 2025-11-13 10:41:41 +00:00 by jj_jacky_jj · 2 comments

🚨 Bug Report: Null Reference Exception during Specific Download Modes

📌 Summary

The application frequently throws a Null Reference Exception when attempting to execute downloads in Single URL Download mode or Custom Download mode, causing certain media files to fail.

📄 Steps to Reproduce

  1. Launch the application.
  2. Attempt either of the following download operations:
    • A. Single URL Download: Input a specific media URL and initiate the download.
    • B. Custom Download: Select a group of media files for a custom task and start the download.
  3. The error occurs frequently and intermittently during the download process, leading to job interruption.

Note: This issue affects some videos and does not appear to be a universal failure across all downloads.

💻 Error Message and Stack Trace

The exception is caught within the DownloadDrmMedia method of the OF_DL.Helpers.DownloadHelper module, indicating a null reference issue during the DRM media handling process.

Error message:

Exception caught: Object reference not set to an instance of an object.
    StackTrace:    at OF_DL.Helpers.DownloadHelper.DownloadDrmMedia(String user_agent, String policy, StringsinKey, String folder, DateTime lastModified, Int64 media_id```
## 🚨 Bug Report: Null Reference Exception during Specific Download Modes ### 📌 Summary The application frequently throws a **Null Reference Exception** when attempting to execute downloads in **Single URL Download** mode or **Custom Download** mode, causing certain media files to fail. ### 📄 Steps to Reproduce 1. Launch the application. 2. Attempt either of the following download operations: * **A. Single URL Download:** Input a specific media URL and initiate the download. * **B. Custom Download:** Select a group of media files for a custom task and start the download. 3. The error occurs frequently and intermittently during the download process, leading to job interruption. **Note:** This issue affects **some videos** and does not appear to be a universal failure across all downloads. ### 💻 Error Message and Stack Trace The exception is caught within the `DownloadDrmMedia` method of the `OF_DL.Helpers.DownloadHelper` module, indicating a null reference issue during the DRM media handling process. **Error message:** ``` Exception caught: Object reference not set to an instance of an object. StackTrace: at OF_DL.Helpers.DownloadHelper.DownloadDrmMedia(String user_agent, String policy, StringsinKey, String folder, DateTime lastModified, Int64 media_id```
Contributor

this PR should fix your problem: #82

this PR should fix your problem: https://git.ofdl.tools/sim0n00ps/OF-DL/pulls/82
Collaborator

Consolidating this under #78.

Consolidating this under #78.
melithine added the
duplicate
label 2025-11-29 19:59:36 +00:00
Sign in to join this conversation.
3 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sim0n00ps/OF-DL#76
No description provided.