mirror of
https://github.com/pacnpal/Pac-cogs.git
synced 2025-12-20 02:41:06 -05:00
.gitignore
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,3 +2,4 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
videoarchiver/tmp/
|
videoarchiver/tmp/
|
||||||
__pycache__
|
__pycache__
|
||||||
|
cline_docs
|
||||||
@@ -1,11 +1,13 @@
|
|||||||
# Active Context
|
# Active Context
|
||||||
|
|
||||||
## Current Focus
|
## Current Focus
|
||||||
|
|
||||||
- Adding fallback import patterns to all non-init Python files
|
- Adding fallback import patterns to all non-init Python files
|
||||||
- Maintaining relative imports while ensuring compatibility with Red-DiscordBot loading
|
- Maintaining relative imports while ensuring compatibility with Red-DiscordBot loading
|
||||||
- Implementing consistent import patterns across the entire codebase
|
- Implementing consistent import patterns across the entire codebase
|
||||||
|
|
||||||
## Recent Changes
|
## Recent Changes
|
||||||
|
|
||||||
- Added fallback imports in core module files:
|
- Added fallback imports in core module files:
|
||||||
- base.py
|
- base.py
|
||||||
- cleanup.py
|
- cleanup.py
|
||||||
@@ -21,6 +23,7 @@
|
|||||||
- __init__.py
|
- __init__.py
|
||||||
|
|
||||||
## Next Steps
|
## Next Steps
|
||||||
|
|
||||||
1. Add fallback imports to database module files:
|
1. Add fallback imports to database module files:
|
||||||
- connection_manager.py
|
- connection_manager.py
|
||||||
- query_manager.py
|
- query_manager.py
|
||||||
@@ -74,9 +77,11 @@
|
|||||||
- __init__.py
|
- __init__.py
|
||||||
|
|
||||||
## Active Files
|
## Active Files
|
||||||
|
|
||||||
Currently working through database module files
|
Currently working through database module files
|
||||||
|
|
||||||
## Strategy
|
## Strategy
|
||||||
|
|
||||||
- Process one module at a time
|
- Process one module at a time
|
||||||
- Update files systematically
|
- Update files systematically
|
||||||
- Commit changes per module
|
- Commit changes per module
|
||||||
|
|||||||
@@ -3,10 +3,17 @@
|
|||||||
import os
|
import os
|
||||||
import logging
|
import logging
|
||||||
from typing import Dict, Any
|
from typing import Dict, Any
|
||||||
|
|
||||||
|
try:
|
||||||
|
# Try relative imports first
|
||||||
from .exceptions import CompressionError, QualityError, BitrateError
|
from .exceptions import CompressionError, QualityError, BitrateError
|
||||||
|
except ImportError:
|
||||||
|
# Fall back to absolute imports if relative imports fail
|
||||||
|
from videoarchiver.ffmpeg.exceptions import CompressionError, QualityError, BitrateError
|
||||||
|
|
||||||
logger = logging.getLogger("VideoArchiver")
|
logger = logging.getLogger("VideoArchiver")
|
||||||
|
|
||||||
|
|
||||||
class EncoderParams:
|
class EncoderParams:
|
||||||
"""Manages FFmpeg encoding parameters based on hardware and content"""
|
"""Manages FFmpeg encoding parameters based on hardware and content"""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user