Commit Graph

68 Commits

Author SHA1 Message Date
sHa
2dce807984 feat: Introduce DefaultExtractor for fallback values and refactor extraction logic in MediaExtractor 2025-12-26 19:10:49 +00:00
sHa
aec31bae9e feat: Add audio languages and tracks extraction from filename, with corresponding tests 2025-12-26 15:37:57 +00:00
sHa
c5ab985440 feat: Add movie database identifier extraction and update related tests 2025-12-26 14:34:58 +00:00
sHa
38e3f0e553 feat: Improve title extraction logic and add comprehensive test cases for edge cases 2025-12-26 14:06:40 +00:00
sHa
3ecffc0d3c feat: Add HDR extraction from filename and update tests 2025-12-26 13:51:12 +00:00
sHa
91df347727 feat: Enhance metadata extraction and formatting, improve extractor architecture, and update documentation 2025-12-26 13:38:17 +00:00
sHa
8f68624529 feat: Increase audio and subtitle track extraction limits to 10 2025-12-26 12:07:33 +00:00
sHa
6d377c9871 feat: Add duration extraction and formatting utilities 2025-12-26 12:02:36 +00:00
sHa
1d6eb9593e feat: Refactor formatting and extraction logic
- Added `langcodes` dependency for improved language handling.
- Replaced `ColorFormatter` with `TextFormatter` for consistent text styling across the application.
- Introduced `TrackFormatter` for better track information formatting.
- Updated `MediaFormatter` to utilize new formatting methods and improved data handling.
- Refactored `MediaExtractor` to enhance data extraction logic and improve readability.
- Removed deprecated `ColorFormatter` methods and replaced them with `TextFormatter` equivalents.
- Added new methods for extracting and formatting audio and subtitle tracks.
- Updated tests to reflect changes in the extraction logic and formatting.
2025-12-26 11:33:24 +00:00
sHa
d2ec235458 Refactor extractors and formatters for improved structure and functionality
- Converted static methods to instance methods in FileInfoExtractor and FilenameExtractor for better encapsulation.
- Enhanced MediaInfoExtractor to initialize with file path and extract media information upon instantiation.
- Updated MetadataExtractor to handle metadata extraction with improved error handling and added methods for meta type detection.
- Introduced ColorFormatter for consistent text formatting across the application.
- Refactored MediaFormatter to utilize the new extractor structure and improve output formatting.
- Removed redundant utility functions and replaced them with direct calls in extractors.
- Added ProposedNameFormatter for better handling of proposed filename formatting.
- Updated extension handling to use MEDIA_TYPES for descriptions instead of VIDEO_EXT_DESCRIPTIONS.
2025-12-25 23:35:59 +00:00
sHa
37efdf60d3 feat: add frame class extraction and formatting for media files 2025-12-25 05:13:56 +00:00
sHa
4e7cf94d58 feat: add pytest configuration and implement tests for file and metadata extraction 2025-12-25 03:42:47 +00:00
sHa
305dd5f43e feat: restructure renamer package and implement media extraction features
- Updated `pyproject.toml` to reflect new package structure.
- Created `renamer/__init__.py` to initialize the package.
- Implemented `RenamerApp` in `renamer/app.py` for the main application interface.
- Added constants for video extensions in `renamer/constants.py`.
- Developed `MediaExtractor` class in `renamer/extractor.py` for extracting metadata from media files.
- Created various extractor classes in `renamer/extractors/` for handling filename, metadata, and media info extraction.
- Added formatting classes in `renamer/formatters/` for displaying media information and proposed filenames.
- Implemented utility functions in `renamer/utils.py` for detecting file types and extracting media track information.
- Introduced `OpenScreen` in `renamer/screens.py` for user input of directory paths.
- Enhanced error handling and user feedback throughout the application.
2025-12-25 03:10:40 +00:00
sHa
9e331e58ce Add AI agent instructions and update project TODO list with detailed steps 2025-12-25 01:43:07 +00:00
sHa
c7efe03afa Enhance media track display and improve file details formatting 2025-12-25 01:14:56 +00:00
sHa
927b79800b Add function to extract and display media track information 2025-12-25 00:22:33 +00:00
sHa
eb34b864b3 Add uv.lock file with package dependencies and versions 2025-12-25 00:05:57 +00:00
sHa
8f3cd517f3 Add initial project structure with core functionality 2025-12-25 00:05:16 +00:00