Snatch v1.5.0
Enhanced Retry Mechanism:
Increased the default MAX_RETRIES from 10 to 15
Added exponential backoff with jitter for more distributed retry attempts
Improved detection of retriable network errors via the _is_retriable_error method
Added command-line options for users to control retry behavior
User-Friendly Feedback:
Added detailed error messages mapping for common network errors in NETWORK_ERROR_MESSAGES
Created a _get_friendly_error_message method that generates readable error messages
Added retry attempt counter in error messages
Better connection handling with improved socket timeout and keep-alive headers
Better Logging and Diagnostics:
Detailed logging of retry attempts with DEBUG level messages
Clear indication when maximum retries are reached
Type-specific error handling for different network failures
Suggestions for potential fixes (like using --throttle option)
x the issue with the audioChannels parameter in the FFmpegExtractAudio postprocessor. The error occurs because the parameter name is incorrect in the options dictionary.
This change fixes the parameter name from audioChannels to audio_channels, which is the correct parameter name expected by the FFmpegExtractAudio postprocessor. The error was happening because yt-dlp was receiving an unexpected parameter name that it didn't recognize.
Full Changelog: v1.4.0...v1.5.0