refactor(Subtitle): Do not print "?"/"Unknown" values in str()
This commit is contained in:
@@ -142,7 +142,7 @@ class Subtitle(Track):
|
|||||||
def __str__(self) -> str:
|
def __str__(self) -> str:
|
||||||
return " | ".join(filter(bool, [
|
return " | ".join(filter(bool, [
|
||||||
"SUB",
|
"SUB",
|
||||||
f"[{self.codec.value}]",
|
f"[{self.codec.value}]" if self.codec else None,
|
||||||
str(self.language),
|
str(self.language),
|
||||||
self.get_track_name()
|
self.get_track_name()
|
||||||
]))
|
]))
|
||||||
|
|||||||
Reference in New Issue
Block a user