Occasional failed download #85

Closed
opened 2025-12-04 13:19:16 +00:00 by anotherlevel · 1 comment

Hi,

I'm seeing an issue where a video sometimes fails to download completely, but a file is created with size 0 bytes.
Errors can happen with a big scrape, it's probably not a good use of time to track down exactly why in my case.
The issue is that it's marked as downloaded in the database, so retries don't download the file - even if the 0kb file is deleted and the individual post is requested to be downloaded.
Manually editing the SQLite file to set the downloaded field to 0 in the medias table is all that is needed to successfully allow a retry.

Suggestion: on completing a download, check that file size on disk > 0kb; only mark as downloaded if true.

Hi, I'm seeing an issue where a video sometimes fails to download completely, but a file is created with size 0 bytes. Errors can happen with a big scrape, it's probably not a good use of time to track down exactly why in my case. The issue is that it's marked as downloaded in the database, so retries don't download the file - even if the 0kb file is deleted and the individual post is requested to be downloaded. Manually editing the SQLite file to set the `downloaded` field to 0 in the `medias` table is all that is needed to successfully allow a retry. Suggestion: on completing a download, check that file size on disk > 0kb; only mark as downloaded if true.
Collaborator

Marking as a duplicate of #77

Marking as a duplicate of #77
melithine added the
duplicate
label 2025-12-05 15:40:35 +00:00
Sign in to join this conversation.
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

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