refactor(Subtitle): Do not print "?"/"Unknown" values in str()

This commit is contained in:
rlaphoenix 2024-04-14 03:25:22 +01:00
parent 5c7c080a34
commit 7fa0ff1fc0

View File

@ -142,7 +142,7 @@ class Subtitle(Track):
def __str__(self) -> str:
return " | ".join(filter(bool, [
"SUB",
f"[{self.codec.value}]",
f"[{self.codec.value}]" if self.codec else None,
str(self.language),
self.get_track_name()
]))