mirror of
https://github.com/pacnpal/Pac-cogs.git
synced 2025-12-20 10:51:05 -05:00
Enhanced FFmpeg Integration:
Added robust error handling and logging Improved binary verification and initialization Added proper GPU detection and hardware acceleration Optimized encoding parameters for different content types Improved File Operations: Added retry mechanisms for file operations Enhanced temporary directory management Improved cleanup of failed downloads Added proper permission handling Enhanced Queue Management: Fixed queue manager initialization Added better error recovery Improved status tracking and logging Enhanced cleanup of failed items Better Error Handling: Added comprehensive exception hierarchy Improved error logging and reporting Added fallback mechanisms for failures Enhanced error recovery strategies
This commit is contained in:
@@ -183,7 +183,7 @@ class EnhancedVideoQueueManager:
|
||||
channel_id: int,
|
||||
guild_id: int,
|
||||
author_id: int,
|
||||
callback: Callable[[str, bool, str], Any],
|
||||
callback: Optional[Callable[[str, bool, str], Any]] = None, # Make callback optional
|
||||
priority: int = 0,
|
||||
) -> bool:
|
||||
"""Add a video to the processing queue with priority support"""
|
||||
@@ -259,7 +259,9 @@ class EnhancedVideoQueueManager:
|
||||
try:
|
||||
# Process the item
|
||||
start_time = time.time()
|
||||
logger.info(f"Calling processor for item: {item.url}")
|
||||
success, error = await processor(item)
|
||||
logger.info(f"Processor result for {item.url}: success={success}, error={error}")
|
||||
processing_time = time.time() - start_time
|
||||
|
||||
# Update metrics
|
||||
|
||||
Reference in New Issue
Block a user