X-Git-Url: http://git.kaliko.me/?p=mpd-goodies.git;a=blobdiff_plain;f=mfade;h=de84f141dfc21be9cfc252af9bd885b179a2a0e8;hp=6b8616b56e7f529abef6cd24dd3808c3bac44a77;hb=fb86eb100710617fea5b6d0e4a7bc452fd016732;hpb=ac614cfe6b06280840fdff358cad58d234732ebe diff --git a/mfade b/mfade index 6b8616b..de84f14 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] | [