mirror of https://github.com/devine-dl/devine.git
refactor(Audio): Do not print "?"/"Unknown" values in str()
This commit is contained in:
parent
57b042fa4b
commit
8ca91efbc5
|
@ -79,10 +79,13 @@ class Audio(Track):
|
||||||
def __str__(self) -> str:
|
def __str__(self) -> str:
|
||||||
return " | ".join(filter(bool, [
|
return " | ".join(filter(bool, [
|
||||||
"AUD",
|
"AUD",
|
||||||
f"[{self.codec.value}]",
|
f"[{self.codec.value}]" if self.codec else None,
|
||||||
str(self.language),
|
str(self.language),
|
||||||
str(self.channels or "?") + (f" (JOC {self.joc})" if self.joc else ""),
|
", ".join(filter(bool, [
|
||||||
f"{self.bitrate // 1000 if self.bitrate else '?'} kb/s",
|
str(self.channels) if self.channels else None,
|
||||||
|
f"JOC {self.joc}" if self.joc else None,
|
||||||
|
])),
|
||||||
|
f"{self.bitrate // 1000} kb/s" if self.bitrate else None,
|
||||||
self.get_track_name(),
|
self.get_track_name(),
|
||||||
self.edition
|
self.edition
|
||||||
]))
|
]))
|
||||||
|
|
Loading…
Reference in New Issue