X-Git-Url: http://git.kaliko.me/?p=mpd-goodies.git;a=blobdiff_plain;f=src%2Fcrop;fp=crop;h=5f7dde568d1ec3ccc42510cb0fd084253aa61097;hp=944241a1c4bcf35723a2a0bdb0a6d70cd737f050;hb=8c680f357953b22043895a3b49f9e58981504669;hpb=6729b0a3c9607c8ee6a8dd352ec601ad22cacaf2 diff --git a/crop b/src/crop similarity index 95% rename from crop rename to src/crop index 944241a..5f7dde5 100755 --- a/crop +++ b/src/crop @@ -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,8 +16,6 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . # -# }}} - import sys @@ -28,6 +26,7 @@ NAME = 'crop' VERSION = '0.1' USAGE = 'USAGE: %prog [--help] | [ ]' + class Crop(StartOpt, MPDClass): """ """ @@ -61,7 +60,7 @@ class Crop(StartOpt, MPDClass): print 'Keeping %i tracks' % self.nb_tracks self.mpdConnect() current_pos = int(self.client.currentsong().get('pos', 0)) - if current_pos <= self.nb_tracks: + if current_pos <= self.nb_tracks: self.client.disconnect() sys.exit(0) while current_pos > self.nb_tracks: