]> kaliko git repositories - mpd-goodies.git/blobdiff - bin/mtime
Fixed protocol version check for mlast
[mpd-goodies.git] / bin / mtime
index 24f1538ab11552478a48564afd606b50b2f503f7..cdb8409ada1fdf57ef6f71437a7e865d73234fe1 100755 (executable)
--- a/bin/mtime
+++ b/bin/mtime
@@ -1,26 +1,13 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
-
-# Copyright (c) 2009,2010,2012,2019 kaliko <kaliko@azylum.org>
-#
-#   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
-#   the Free Software Foundation, either version 3 of the License, or
-#   (at your option) any later version.
-#
-#   This program is distributed in the hope that it will be useful,
-#   but WITHOUT ANY WARRANTY; without even the implied warranty of
-#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
-#   GNU General Public License for more details.
-#
-#   You should have received a copy of the GNU General Public License
-#   along with this program.  If not, see <http://www.gnu.org/licenses/>.
-#
+# SPDX-FileCopyrightText: 2009,2010,2012,2019 kaliko <kaliko@azylum.org>
+# SPDX-License-Identifier: GPL-3.0-or-later
 
 import argparse
 import sys
 
 from datetime import timedelta
+from os.path import basename
 
 import musicpd
 
@@ -29,7 +16,7 @@ VERSION = '0.2'
 
 class Mtime(musicpd.MPDClient):
     script_info = dict({
-        'prog': 'mtime',
+        'prog': basename(__file__),
         'description': 'Print current playlist duration.',
         'epilog': 'Set MPD host/port in env. var'
     })