Refactor code structure for improved readability and maintainability

This commit is contained in:
sha
2026-01-03 14:54:50 +00:00
parent 6fee7d9f63
commit b45e629825
7 changed files with 57 additions and 47 deletions
+9
View File
@@ -375,6 +375,15 @@ class MediaPanelProperties:
def media_file_size(self) -> str:
"""Get media file size formatted with label."""
return self._extractor.get("file_size")
@property
@text_decorators.blue()
@conditional_decorators.wrap("Extension: ")
@text_decorators.green()
@extension_decorators.extension_info()
def media_file_extension(self) -> str:
"""Get media file extension formatted with label."""
return self._extractor.get("extension")
@property
@text_decorators.blue()