Refactor code structure for improved readability and maintainability
This commit is contained in:
BIN
dist/renamer-0.8.4-py3-none-any.whl
vendored
Normal file
BIN
dist/renamer-0.8.4-py3-none-any.whl
vendored
Normal file
Binary file not shown.
@@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "renamer"
|
||||
version = "0.8.3"
|
||||
version = "0.8.4"
|
||||
description = "Terminal-based media file renamer and metadata viewer"
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.11"
|
||||
|
||||
@@ -218,13 +218,13 @@ class RenamerApp(App):
|
||||
|
||||
# File type icons
|
||||
icons = {
|
||||
'mkv': '📹', # Video camera for MKV
|
||||
'mk3d': '🎬', # Clapper board for 3D
|
||||
'mkv': '', # Video camera for MKV
|
||||
'mk3d': '', # Clapper board for 3D
|
||||
'mp4': '', # Video camera
|
||||
'mov': '', # Video camera
|
||||
'webm': '', # Video camera
|
||||
'avi': '💿', # Film frames for AVI
|
||||
'mp4': '📹', # Video camera
|
||||
'mov': '📹', # Video camera
|
||||
'wmv': '📀', # Video camera
|
||||
'webm': '📹', # Video camera
|
||||
'm4v': '📹', # Video camera
|
||||
'mpg': '📼', # Video camera
|
||||
'mpeg': '📼', # Video camera
|
||||
@@ -240,7 +240,7 @@ class RenamerApp(App):
|
||||
if item.name.startswith(".") or item.name == "lost+found":
|
||||
continue
|
||||
# Add folder icon before directory name
|
||||
label = f"📁 {escape(item.name)}"
|
||||
label = f" {escape(item.name)}"
|
||||
subnode = node.add(label, data=item)
|
||||
self.build_tree(item, subnode)
|
||||
elif item.is_file() and item.suffix.lower() in {
|
||||
|
||||
Reference in New Issue
Block a user