mirror of
https://github.com/beetbox/beets.git
synced 2025-12-06 08:39:17 +01:00
added bitrate support for flac
--HG-- extra : convert_revision : svn%3A41726ec3-264d-0410-9c23-a9f1637257cc/trunk%40120
This commit is contained in:
parent
b1a45fda0b
commit
647bd33b8e
2 changed files with 6 additions and 1 deletions
|
|
@ -512,5 +512,9 @@ class MediaFile(object):
|
|||
|
||||
@property
|
||||
def bitrate(self):
|
||||
return self.mgfile.info.bitrate
|
||||
if self.type == 'flac':
|
||||
return self.mgfile.info.sample_rate * \
|
||||
self.mgfile.info.bits_per_sample
|
||||
else:
|
||||
return self.mgfile.info.bitrate
|
||||
|
||||
|
|
|
|||
|
|
@ -186,6 +186,7 @@ read_only_correct_dicts = {
|
|||
|
||||
'full.flac': {
|
||||
'length': 1.0,
|
||||
'bitrate': 705600,
|
||||
},
|
||||
|
||||
'full.m4a': {
|
||||
|
|
|
|||
Loading…
Reference in a new issue