X-Git-Url: http://git.kaliko.me/?p=mpd-goodies.git;a=blobdiff_plain;f=mfade;h=6666c8d4ca03c9f37697d49ee4295b744f9303eb;hp=6b8616b56e7f529abef6cd24dd3808c3bac44a77;hb=bc382cb2c3140986efbf1d8786e2a58655c26b16;hpb=1cb3b44761a6b51dd8ac5a0c8279e46e41b91847 diff --git a/mfade b/mfade index 6b8616b..6666c8d 100755 --- a/mfade +++ b/mfade @@ -29,94 +29,87 @@ import sys from time import sleep -from lib.mpdutils import mconnect - -USAGE = """Usage: - -mfade [time [min|max]] - - * time in seconds - * min|max in percentage of volume - -when MPD is: -- not playing: fade in from 0% to max over time - default 10 minutes / 50% -- playing: fade out from current volume to min over time - default 10 minutes / 1/10 of current vol - -Manual or any external volume change will abort the script. -""" - - -class Sleep(object): - """ - """ - - def __init__(self): +from lib.mpdclass import MPDClass +from lib.startop import StartOpt + +NAME = 'mfade' +VERSION = '0.1' +USAGE = 'USAGE: %prog [--help] [options] [