mirror of
https://github.com/beetbox/beets.git
synced 2025-12-15 13:07:09 +01:00
Added a property for sample rate, mutagen provides this as sample_rate
This commit is contained in:
parent
dfb0eff8e3
commit
cda7b4d9dc
1 changed files with 4 additions and 0 deletions
|
|
@ -944,6 +944,10 @@ class MediaFile(object):
|
|||
def length(self):
|
||||
return self.mgfile.info.length
|
||||
|
||||
@property
|
||||
def samplerate(self):
|
||||
return self.mgfile.info.sample_rate
|
||||
|
||||
@property
|
||||
def bitrate(self):
|
||||
if hasattr(self.mgfile.info, 'bitrate'):
|
||||
|
|
|
|||
Loading…
Reference in a new issue