Skip to content

Add error logging system with --errors flag#59

Open
KyleCie wants to merge 1 commit intoPaaaulZ:mainfrom
KyleCie:fix/error-handling
Open

Add error logging system with --errors flag#59
KyleCie wants to merge 1 commit intoPaaaulZ:mainfrom
KyleCie:fix/error-handling

Conversation

@KyleCie
Copy link

@KyleCie KyleCie commented Feb 8, 2026

Changes

  • Added --errors flag to enable error logging
  • Created log_error() function to track all download errors
  • Errors are saved to errors.txt in the album folder (like already_downloaded.txt)
  • Added error types: HTTP_ERROR, DOWNLOAD_LINK_ERROR, TIMEOUT_ERROR, etc.

Usage exemple

python script.py -u "https://bunkr.sk/a/album" --errors

Errors Types

  • HTTP_ERROR - HTTP errors when fetching URLs
  • DOWNLOAD_LINK_ERROR - Unable to find download link
  • TIMEOUT_ERROR - Connection timeout
  • CONNECTION_ERROR - Network connection issues
  • SIZE_MISMATCH - File size validation failed
  • DECRYPTION_ERROR - URL decryption failed

Benefits

  • Easier debugging of download issues
  • Better error visibility without stopping the download process

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant