1
# Copyright 2004-2005 Joe Wreschnig, Michael Urman
3
# This program is free software; you can redistribute it and/or modify
4
# it under the terms of the GNU General Public License version 2 as
5
# published by the Free Software Foundation
7
# $Id: wavpack.py 4330 2008-09-14 03:19:26Z piman $
9
from quodlibet.formats._apev2 import APEv2File
13
from mutagen.wavpack import WavPack
17
class WavpackFile(APEv2File):
20
def __init__(self, filename):
21
audio = WavPack(filename)
22
super(WavpackFile, self).__init__(filename, audio)
23
self["~#length"] = int(audio.info.length)
24
self.sanitize(filename)