fix: Improve VideoArchiver cog structure - Remove command registration (handled by commands.py) - Ensure data directories exist - Add better initialization and cleanup - Improve error handling

This commit is contained in:
pacnpal
2024-11-15 01:03:30 +00:00
parent c2f5a6b461
commit 0df5c879bb

View File

@@ -62,6 +62,7 @@ class VideoArchiver(commands.Cog):
# Initialize queue manager
queue_path = self.data_path / "queue_state.json"
queue_path.parent.mkdir(parents=True, exist_ok=True)
self.queue_manager = EnhancedVideoQueueManager(
max_retries=3,
retry_delay=5,