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
This commit is contained in:
2025-08-26 17:58:44 +07:00
parent f85ddce6f2
commit 4d2e84a45a

View File

@@ -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}) unique_audio_languages = len({x.language.split("-")[0] for x in media_info.audio_tracks if x.language})
# Name (Year) # Name (Year)
name = str(self).replace("$", "S") # e.g., Arli$$ name = str(self).replace("$", "S") + " -" # e.g., Arli$$
if config.scene_naming: if config.scene_naming:
# Resolution # Resolution
@@ -78,20 +78,20 @@ class Movie(Title):
resolution = int(primary_video_track.width * (9 / 16)) resolution = int(primary_video_track.width * (9 / 16))
name += f" {resolution}p" name += f" {resolution}p"
# Service # # Service
if show_service: # if show_service:
name += f" {self.service.__name__}" # name += f" {self.service.__name__}"
# 'WEB-DL' # # 'WEB-DL'
name += " WEB-DL" # name += " WEB-DL"
# DUAL # # DUAL
if unique_audio_languages == 2: # if unique_audio_languages == 2:
name += " DUAL" # name += " DUAL"
# MULTi # # MULTi
if unique_audio_languages > 2: # if unique_audio_languages > 2:
name += " MULTi" # name += " MULTi"
# Audio Codec + Channels (+ feature) # Audio Codec + Channels (+ feature)
if primary_audio_track: if primary_audio_track:
@@ -132,8 +132,8 @@ class Movie(Title):
name += " HFR" name += " HFR"
name += f" {VIDEO_CODEC_MAP.get(codec, codec)}" name += f" {VIDEO_CODEC_MAP.get(codec, codec)}"
if config.tag: # if config.tag:
name += f"-{config.tag}" # name += f"-{config.tag}"
return sanitize_filename(name) return sanitize_filename(name)
else: else: