mirror of
https://github.com/nathom/streamrip.git
synced 2025-05-18 09:04:51 -04:00
parent
002dbfe00f
commit
ffcc2dfcda
1 changed files with 7 additions and 1 deletions
|
@ -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")):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue