diff --git a/dist/renamer-0.7.4-py3-none-any.whl b/dist/renamer-0.7.4-py3-none-any.whl new file mode 100644 index 0000000..25c20ed Binary files /dev/null and b/dist/renamer-0.7.4-py3-none-any.whl differ diff --git a/pyproject.toml b/pyproject.toml index a386fa7..b053869 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "renamer" -version = "0.7.3" +version = "0.7.4" description = "Terminal-based media file renamer and metadata viewer" readme = "README.md" requires-python = ">=3.11" diff --git a/renamer/app.py b/renamer/app.py index c97cf0b..aaf0186 100644 --- a/renamer/app.py +++ b/renamer/app.py @@ -137,7 +137,7 @@ class RenamerApp(App): "Select a file to view details", id="details_technical", markup=True ) yield Static( - "", id="details_catalog", markup=True + "", id="details_catalog", markup=False ) yield Static("", id="proposed", markup=True) yield Footer() diff --git a/renamer/formatters/catalog_formatter.py b/renamer/formatters/catalog_formatter.py index 6d4bcdc..bb6795e 100644 --- a/renamer/formatters/catalog_formatter.py +++ b/renamer/formatters/catalog_formatter.py @@ -77,7 +77,6 @@ class CatalogFormatter: text_content = "\n\n".join(lines) if lines else "No catalog information available" from rich.console import Console - from rich.markup import escape from io import StringIO console = Console(file=StringIO(), width=120, legacy_windows=False) @@ -85,13 +84,9 @@ class CatalogFormatter: rendered_text = console.file.getvalue() # Append poster output if available - # Escape ASCII art to prevent Rich from interpreting characters as markup + # Don't process ASCII art through console - just append it directly if poster_output: - # Escape special characters that Rich uses for markup - escaped_poster = escape(poster_output) - console2 = Console(file=StringIO(), width=120, legacy_windows=False) - console2.print(escaped_poster, markup=False) - return rendered_text + "\n" + console2.file.getvalue() + return rendered_text + "\n" + poster_output else: return rendered_text diff --git a/uv.lock b/uv.lock index 0a4af1b..f1288b1 100644 --- a/uv.lock +++ b/uv.lock @@ -462,7 +462,7 @@ wheels = [ [[package]] name = "renamer" -version = "0.7.3" +version = "0.7.4" source = { editable = "." } dependencies = [ { name = "langcodes" },