added bitrate support for flac

--HG--
extra : convert_revision : svn%3A41726ec3-264d-0410-9c23-a9f1637257cc/trunk%40120
This commit is contained in:
adrian.sampson 2009-02-07 04:19:07 +00:00
parent b1a45fda0b
commit 647bd33b8e
2 changed files with 6 additions and 1 deletions

View file

@ -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

View file

@ -186,6 +186,7 @@ read_only_correct_dicts = {
'full.flac': {
'length': 1.0,
'bitrate': 705600,
},
'full.m4a': {