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