cc-4105: updated to martin's replaygain
This commit is contained in:
parent
1235e86251
commit
91145a3f16
2 changed files with 47 additions and 28 deletions
|
@ -161,8 +161,8 @@ class Metadata(Loggable):
|
|||
self.__metadata = mmp.normalized_metadata(self.__metadata, fpath)
|
||||
# Now we must load the md5:
|
||||
self.__metadata['MDATA_KEY_MD5'] = mmp.file_md5(fpath,max_length=100)
|
||||
#self.__metadata['MDATA_KEY_REPLAYGAIN'] = \
|
||||
#gain.calculate_replay_gain(fpath)
|
||||
self.__metadata['MDATA_KEY_REPLAYGAIN'] = \
|
||||
gain.calculate_replay_gain(fpath)
|
||||
|
||||
def is_recorded(self):
|
||||
return mmp.is_airtime_recorded( self.__metadata )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue