]> kaliko git repositories - mpd-goodies.git/commitdiff
* rename fadio and remove useless dev/debug log.
authorkaliko <kaliko@azylum.org>
Tue, 8 Dec 2009 00:18:04 +0000 (00:18 +0000)
committerkaliko <kaliko@azylum.org>
Tue, 8 Dec 2009 00:18:04 +0000 (00:18 +0000)
mfade [moved from fadio.py with 97% similarity]

diff --git a/fadio.py b/mfade
similarity index 97%
rename from fadio.py
rename to mfade
index 1053e40efb5053b4c190d16e0e896fd309135cd9..22d2f3a0d9cc810684e9bf1a9d685a390d13c5d6 100755 (executable)
--- a/fadio.py
+++ b/mfade
@@ -33,7 +33,7 @@ from lib.mpdutils import mconnect
 
 USAGE = """Usage:
 
-fadio.py [time [min|max]]
+mfade [time [min|max]]
 
    * time in seconds
    * min|max in percentag
@@ -61,8 +61,7 @@ class Sleep(object):
         self.cli.disconnect()
 
     def _consume_sopt(self):
-        """
-        """
+        """"""
         options = sys.argv
         if len(sys.argv) >1 and sys.argv[1] in ['-h', '--help']:
             print USAGE
@@ -103,6 +102,7 @@ class Sleep(object):
         sleep(1)
 
     def fade(self):
+        """"""
         span = float(self.volum - self.mpd_vol)
         step = span / float(60 * self.tempo)
         print step
@@ -112,7 +112,6 @@ class Sleep(object):
                 print 'Warning: external volume change, aborting!'
                 break
             vol += step
-            print step, int(vol)
             self.cli.setvol(int(vol))
             if abs(vol - self.volum) < 1:
                 self.cli.setvol(self.volum)