Add ProposedFilenameView and MediaPanelView with comprehensive tests
- Implemented ProposedFilenameView to generate standardized filenames using a decorator pattern. - Created MediaPanelView to assemble media data panels for display, aggregating multiple formatters. - Added tests for ProposedFilenameView covering various formatting scenarios, including basic, minimal, and special cases. - Introduced a views package to organize and expose the new views. - Ensured proper formatting and display of media information, including file info, TMDB data, and track information.
This commit is contained in:
14
renamer/views/__init__.py
Normal file
14
renamer/views/__init__.py
Normal file
@@ -0,0 +1,14 @@
|
||||
"""Views package - assembles formatted data for display.
|
||||
|
||||
Views compose multiple formatters to create complex display outputs.
|
||||
Unlike formatters which transform single values, views aggregate and
|
||||
orchestrate multiple formatters to build complete UI panels.
|
||||
"""
|
||||
|
||||
from .proposed_filename import ProposedFilenameView
|
||||
from .media_panel import MediaPanelView
|
||||
|
||||
__all__ = [
|
||||
'ProposedFilenameView',
|
||||
'MediaPanelView',
|
||||
]
|
||||
Reference in New Issue
Block a user