X-Git-Url: https://git.kaliko.me/?p=mpd-goodies.git;a=blobdiff_plain;f=src%2Fcrop;h=4829a65faf2e82a9d924ec1d2b4a7c06647b823b;hp=5f7dde568d1ec3ccc42510cb0fd084253aa61097;hb=cbf589ccbaa8a96f596f956cd103e754f0936e28;hpb=5894aae4c12d1583fd9ca3e0c486a83a147aca6b diff --git a/src/crop b/src/crop index 5f7dde5..4829a65 100755 --- a/src/crop +++ b/src/crop @@ -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 @@ -19,15 +19,14 @@ import sys -from lib.mpdclass import MPDClass -from lib.startop import StartOpt +from lib.goodies import Goodie NAME = 'crop' VERSION = '0.1' USAGE = 'USAGE: %prog [--help] | [ ]' -class Crop(StartOpt, MPDClass): +class Crop(Goodie): """ """ script_info = dict({ @@ -39,8 +38,7 @@ class Crop(StartOpt, MPDClass): def __init__(self): """""" - StartOpt.__init__(self, self.__class__.script_info, []) - MPDClass.__init__(self) + Goodie.__init__(self, self.__class__.script_info) self.nb_tracks = 6 self._get_arg() self._run()