code cleanup

-changed module name to correct naming convention
-remove some unused imports
This commit is contained in:
Martin Konecny 2012-07-06 10:20:44 -04:00
parent 9612adf72e
commit dec68649c1
4 changed files with 25 additions and 27 deletions

View file

@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
import replay_gain
import replaygain
import os
import hashlib
@ -126,7 +126,7 @@ class AirtimeMetadata:
md = {}
replay_gain_val = replay_gain.calculate_replay_gain(filepath)
replay_gain_val = replaygain.calculate_replay_gain(filepath)
self.logger.info('ReplayGain calculated as %s for %s' % (replay_gain_val, filepath))
md['MDATA_KEY_REPLAYGAIN'] = replay_gain_val