]> kaliko git repositories - mpd-goodies.git/blobdiff - src/mfade
* add Goodie class (wraps mpdclass and startop together)
[mpd-goodies.git] / src / mfade
index 0ffd9dfd452184331e720c0ef8aaefc4a943b8ef..2a791caa72ce1fd33a4bb9af3cea766a434a1c3b 100755 (executable)
--- a/src/mfade
+++ b/src/mfade
@@ -1,7 +1,7 @@
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
 
-# Copyright (c) 2009, 2010 Efrim <efrim@azylum.org>
+# Copyright (c) 2009, 2010, 2012 Kaliko Jack <kaliko.jack@azylum.org>
 #
 #   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()