X-Git-Url: http://git.kaliko.me/?p=mpd-goodies.git;a=blobdiff_plain;f=src%2Fmtopls;fp=mtopls;h=1210fd67421d039cdc2768cd3913530841ff686e;hp=6d0c6ee7aff2d7b2267886af0b573ed35b79daaf;hb=8c680f357953b22043895a3b49f9e58981504669;hpb=6729b0a3c9607c8ee6a8dd352ec601ad22cacaf2 diff --git a/mtopls b/src/mtopls similarity index 95% rename from mtopls rename to src/mtopls index 6d0c6ee..1210fd6 100755 --- a/mtopls +++ b/src/mtopls @@ -1,7 +1,7 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- -# Copyright (c) 2009, 2010 Efrim {{{ +# Copyright (c) 2009, 2010 Efrim # # 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,7 +16,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . # -# }}} import sys @@ -31,6 +30,7 @@ NAME = 'mtopls' VERSION = '0.1' USAGE = 'USAGE: %prog [--help] | /path/to/the/playlist/file/' + class MtoPls(StartOpt, MPDClass): """ """ @@ -82,7 +82,8 @@ class MtoPls(StartOpt, MPDClass): def _run(self): """""" - print 'Connecting %s:%i' % (self.cli_options.host, self.cli_options.port) + print 'Connecting %s:%i' % (self.cli_options.host, + self.cli_options.port) self.mpdConnect() self.current_song = self.client.currentsong() self.client.disconnect()