mirror of
https://github.com/devine-dl/devine.git
synced 2025-04-29 17:49:44 +00:00
refactor(Subtitle): Do not print "?"/"Unknown" values in str()
This commit is contained in:
parent
5c7c080a34
commit
7fa0ff1fc0
@ -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()
|
||||||
]))
|
]))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user