Refactor code structure for improved readability and maintainability

This commit is contained in:
sha
2025-12-30 11:23:33 +00:00
parent fe11dc45f1
commit c4777352e9
6 changed files with 23 additions and 8 deletions
@@ -26,7 +26,8 @@ class ProposedNameFormatter:
return self.rename_line()
def rename_line(self) -> str:
return f"{self.__order}{self.__title} {self.__year}{self.__special_info}{self.__source} [{self.__frame_class}{self.__hdr},{self.__audio_langs}]{self.__db_info}.{self.__extension}"
result = f"{self.__order}{self.__title} {self.__year}{self.__special_info}{self.__source} [{self.__frame_class}{self.__hdr},{self.__audio_langs}]{self.__db_info}.{self.__extension}"
return result.replace("/", "-").replace("\\", "-")
def rename_line_formatted(self, file_path) -> str:
"""Format the proposed name for display with color"""