cc-4105: removed naive replaygain again. added micro optimization to Insert into cc_files
This commit is contained in:
parent
91145a3f16
commit
e98eda144a
3 changed files with 15 additions and 21 deletions
|
@ -4,7 +4,6 @@ import math
|
|||
import os
|
||||
import copy
|
||||
|
||||
import media.update.replaygain as gain
|
||||
from media.monitor.exceptions import BadSongFile
|
||||
from media.monitor.log import Loggable
|
||||
import media.monitor.pure as mmp
|
||||
|
@ -161,8 +160,6 @@ 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)
|
||||
|
||||
def is_recorded(self):
|
||||
return mmp.is_airtime_recorded( self.__metadata )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue