Skip to content

Commit

Permalink
refactor(Subtitle): Do not print "?"/"Unknown" values in str()
Browse files Browse the repository at this point in the history
  • Loading branch information
rlaphoenix committed Apr 14, 2024
1 parent 5c7c080 commit 7fa0ff1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devine/core/tracks/subtitle.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def __init__(self, *args: Any, codec: Subtitle.Codec, cc: bool = False, sdh: boo
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()
]))
Expand Down

0 comments on commit 7fa0ff1

Please sign in to comment.