mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 21:14:19 +01:00
Add changelog item and merge if statements
This commit is contained in:
parent
1ab162743a
commit
e83959ab75
2 changed files with 3 additions and 3 deletions
|
|
@ -465,13 +465,12 @@ def summarize_items(items, singleton):
|
|||
|
||||
if items:
|
||||
average_bitrate = sum([item.bitrate for item in items]) / len(items)
|
||||
if items[0].format == "FLAC":
|
||||
sample_bits = u'{}kHz/{} bit'.format(
|
||||
round(int(items[0].samplerate) / 1000, 1), items[0].bitdepth)
|
||||
total_duration = sum([item.length for item in items])
|
||||
total_filesize = sum([item.filesize for item in items])
|
||||
summary_parts.append(u'{0}kbps'.format(int(average_bitrate / 1000)))
|
||||
if items[0].format == "FLAC":
|
||||
sample_bits = u'{}kHz/{} bit'.format(
|
||||
round(int(items[0].samplerate) / 1000, 1), items[0].bitdepth)
|
||||
summary_parts.append(sample_bits)
|
||||
summary_parts.append(ui.human_seconds_short(total_duration))
|
||||
summary_parts.append(ui.human_bytes(total_filesize))
|
||||
|
|
|
|||
|
|
@ -147,6 +147,7 @@ New features:
|
|||
be deleted after importing.
|
||||
Thanks to :user:`logan-arens`.
|
||||
:bug:`2947`
|
||||
* Added flac-specific reporting of samplerate and bitrate when importing duplicates.
|
||||
|
||||
Fixes:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue