feat(subtitle): support 'original' sub_format to keep source format

This commit is contained in:
imSp4rky
2026-06-07 22:35:49 -06:00
parent 29232925d5
commit 79b884fb6b
3 changed files with 43 additions and 3 deletions
+5
View File
@@ -131,6 +131,8 @@ class SubtitleCodecChoice(click.Choice):
if value_lower not in choices:
choices.append(value_lower)
choices.append("original")
self.aliases = aliases
super().__init__(choices, case_sensitive=False)
@@ -138,6 +140,9 @@ class SubtitleCodecChoice(click.Choice):
if not value:
return None
if str(value).lower() == "original":
return "original"
# First try to convert using the parent class
converted_value = super().convert(value, param, ctx)