mirror of
https://github.com/pacnpal/Pac-cogs.git
synced 2025-12-20 02:41:06 -05:00
fix: Add missing imports in guild.py
- Add pathlib.Path import for download_path usage - Add Dict, Any, Optional from typing for better type hints - Organize imports according to best practices
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
"""Guild component management for VideoArchiver"""
|
||||
|
||||
import logging
|
||||
from typing import TYPE_CHECKING
|
||||
from pathlib import Path
|
||||
from typing import TYPE_CHECKING, Dict, Any, Optional
|
||||
|
||||
from ..utils.video_downloader import VideoDownloader
|
||||
from ..utils.download_core import DownloadCore
|
||||
from ..utils.message_manager import MessageManager
|
||||
from ..utils.file_ops import cleanup_downloads
|
||||
from ..utils.exceptions import VideoArchiverError as ProcessingError
|
||||
@@ -32,7 +33,7 @@ async def initialize_guild_components(cog: "VideoArchiver", guild_id: int) -> No
|
||||
|
||||
# Initialize new components with validated settings
|
||||
cog.components[guild_id] = {
|
||||
"downloader": VideoDownloader(
|
||||
"downloader": DownloadCore(
|
||||
str(cog.download_path),
|
||||
settings["video_format"],
|
||||
settings["video_quality"],
|
||||
|
||||
Reference in New Issue
Block a user