Formatting

This commit is contained in:
Rudi Grinberg 2012-09-13 16:28:38 -04:00
parent 4349dbe4fd
commit 8e0f003309
1 changed files with 3 additions and 3 deletions

View File

@ -215,9 +215,9 @@ class Metadata(Loggable):
# Hickity Hackity for .wav files. Properly do this later
if mmp.extension(fpath) == 'wav':
with contextlib.closing(wave.open(fpath,'r')) as f:
frames=f.getnframes()
rate=f.getframerate()
duration=frames/float(rate)
frames = f.getnframes()
rate = f.getframerate()
duration = frames/float(rate)
full_mutagen.set_length(duration)
# Finally, we "normalize" all the metadata here: