X-Git-Url: https://git.kaliko.me/?p=mpd-goodies.git;a=blobdiff_plain;f=src%2Fwakeup;h=79013f075cfd9ff9a09f2ab1b710195f8361d31c;hp=7009081978a72ed4bbb459960a6764e6a50461a0;hb=cbf589ccbaa8a96f596f956cd103e754f0936e28;hpb=8c680f357953b22043895a3b49f9e58981504669 diff --git a/src/wakeup b/src/wakeup index 7009081..79013f0 100755 --- a/src/wakeup +++ b/src/wakeup @@ -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 @@ -16,15 +16,14 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . # -# }}} import sys from random import choice -from lib.mpdclass import MPDClass -from lib.startop import StartOpt +from lib.goodies import Goodie + NAME = 'wakeup' VERSION = '0.1' @@ -40,7 +39,7 @@ WAKEUP_OPTS = list([ ]) -class WakeUp(StartOpt, MPDClass): +class WakeUp(Goodie): """ """ script_info = dict({ @@ -52,8 +51,8 @@ class WakeUp(StartOpt, MPDClass): def __init__(self): """""" - StartOpt.__init__(self, self.__class__.script_info, WAKEUP_OPTS) - MPDClass.__init__(self) + Goodie.__init__(self, self.__class__.script_info, + extra_options=WAKEUP_OPTS) self._get_arg() self._run()