Signed-off-by: nathom <nathanthomas707@gmail.com>
This commit is contained in:
nathom 2021-06-27 15:43:01 -07:00
parent 002dbfe00f
commit ffcc2dfcda

View file

@ -238,7 +238,13 @@ class Album(Tracklist):
""" """
fmt = {key: self.get(key) for key in ALBUM_KEYS} fmt = {key: self.get(key) for key in ALBUM_KEYS}
stats = get_stats_from_quality(self.quality) stats = tuple(
min(bd, sr)
for bd, sr in zip(
(self.meta.bit_depth, self.meta.sampling_rate),
get_stats_from_quality(self.quality),
)
)
# The quality chosen is not the maximum available quality # The quality chosen is not the maximum available quality
if stats != (fmt.get("sampling_rate"), fmt.get("bit_depth")): if stats != (fmt.get("sampling_rate"), fmt.get("bit_depth")):