.gitignore

This commit is contained in:
pacnpal
2024-11-17 22:24:38 +00:00
parent d80815e9fb
commit c447c784ee
3 changed files with 15 additions and 2 deletions

1
.gitignore vendored
View File

@@ -2,3 +2,4 @@
.DS_Store
videoarchiver/tmp/
__pycache__
cline_docs

View File

@@ -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

View File

@@ -3,10 +3,17 @@
import os
import logging
from typing import Dict, Any
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"""