From 4d2e84a45afadd02e79b4f640cd753fbe778d32d Mon Sep 17 00:00:00 2001 From: kenzuyaa Date: Tue, 26 Aug 2025 17:58:44 +0700 Subject: [PATCH] fix(movie): adjust naming format and comment out audio and service tags - Append " -" suffix to the movie name after replacing "$" with "S" - Comment out adding service name to the title - Disable appending "WEB-DL" tag to the title - Comment out adding "DUAL" tag for two audio languages - Comment out adding "MULTi" tag for more than two audio languages - Comment out appending config tag suffix to video codec in name --- unshackle/core/titles/movie.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/unshackle/core/titles/movie.py b/unshackle/core/titles/movie.py index 3d552d2..e78c493 100644 --- a/unshackle/core/titles/movie.py +++ b/unshackle/core/titles/movie.py @@ -56,7 +56,7 @@ class Movie(Title): unique_audio_languages = len({x.language.split("-")[0] for x in media_info.audio_tracks if x.language}) # Name (Year) - name = str(self).replace("$", "S") # e.g., Arli$$ + name = str(self).replace("$", "S") + " -" # e.g., Arli$$ if config.scene_naming: # Resolution @@ -78,20 +78,20 @@ class Movie(Title): resolution = int(primary_video_track.width * (9 / 16)) name += f" {resolution}p" - # Service - if show_service: - name += f" {self.service.__name__}" + # # Service + # if show_service: + # name += f" {self.service.__name__}" - # 'WEB-DL' - name += " WEB-DL" + # # 'WEB-DL' + # name += " WEB-DL" - # DUAL - if unique_audio_languages == 2: - name += " DUAL" + # # DUAL + # if unique_audio_languages == 2: + # name += " DUAL" - # MULTi - if unique_audio_languages > 2: - name += " MULTi" + # # MULTi + # if unique_audio_languages > 2: + # name += " MULTi" # Audio Codec + Channels (+ feature) if primary_audio_track: @@ -132,8 +132,8 @@ class Movie(Title): name += " HFR" name += f" {VIDEO_CODEC_MAP.get(codec, codec)}" - if config.tag: - name += f"-{config.tag}" + # if config.tag: + # name += f"-{config.tag}" return sanitize_filename(name) else: