X-Git-Url: https://git.kaliko.me/?p=mpd-goodies.git;a=blobdiff_plain;f=src%2Fmfade;h=2a791caa72ce1fd33a4bb9af3cea766a434a1c3b;hp=0ffd9dfd452184331e720c0ef8aaefc4a943b8ef;hb=cbf589ccbaa8a96f596f956cd103e754f0936e28;hpb=5894aae4c12d1583fd9ca3e0c486a83a147aca6b diff --git a/src/mfade b/src/mfade index 0ffd9df..2a791ca 100755 --- a/src/mfade +++ b/src/mfade @@ -1,7 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -# Copyright (c) 2009, 2010 Efrim +# Copyright (c) 2009, 2010, 2012 Kaliko Jack # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -28,8 +28,8 @@ import sys from time import sleep -from lib.mpdclass import MPDClass -from lib.startop import StartOpt +from lib.goodies import Goodie + NAME = 'mfade' VERSION = '0.1' @@ -39,7 +39,7 @@ to 50% when paused or stopped and from current volume to 10th of it if playing, both over 10 minutes.""" -class Sleep(StartOpt, MPDClass): +class Sleep(Goodie): """""" script_info = dict({ 'version': VERSION, @@ -50,8 +50,7 @@ class Sleep(StartOpt, MPDClass): def __init__(self): """""" - StartOpt.__init__(self, self.__class__.script_info, []) - MPDClass.__init__(self) + Goodie.__init__(self, self.__class__.script_info) self.tempo = int(10) self.volum = None self._consume_args()