X-Git-Url: https://git.kaliko.me/?p=mpd-goodies.git;a=blobdiff_plain;f=src%2Fmtopls;h=6a845ad3d0af2e15f2eb38c8db390634ced5cf58;hp=1210fd67421d039cdc2768cd3913530841ff686e;hb=cbf589ccbaa8a96f596f956cd103e754f0936e28;hpb=8c680f357953b22043895a3b49f9e58981504669 diff --git a/src/mtopls b/src/mtopls index 1210fd6..6a845ad 100755 --- a/src/mtopls +++ b/src/mtopls @@ -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 @@ -21,17 +21,17 @@ import sys from os import(access, W_OK) -from os.path import (dirname, isfile, join, basename, abspath) +from os.path import (dirname, isfile, basename) + +from lib.goodies import Goodie -from lib.mpdclass import MPDClass -from lib.startop import StartOpt NAME = 'mtopls' VERSION = '0.1' USAGE = 'USAGE: %prog [--help] | /path/to/the/playlist/file/' -class MtoPls(StartOpt, MPDClass): +class MtoPls(Goodie): """ """ script_info = dict({ @@ -43,8 +43,7 @@ class MtoPls(StartOpt, MPDClass): def __init__(self): """""" - StartOpt.__init__(self, self.__class__.script_info, []) - MPDClass.__init__(self) + Goodie.__init__(self, self.__class__.script_info) self.playlist = None self._run()