From: kaliko Date: Sat, 18 May 2019 07:56:26 +0000 (+0200) Subject: Fixed mtime prog name X-Git-Url: https://git.kaliko.me/?p=mpd-goodies.git;a=commitdiff_plain;h=c3d3e3e94322ae62017784dc3c723b3bceb43818;hp=fd91ff3c183f3710aa062d67295939df35e4b19b Fixed mtime prog name --- diff --git a/bin/mtime b/bin/mtime index 24f1538..bca4fab 100755 --- a/bin/mtime +++ b/bin/mtime @@ -21,6 +21,7 @@ import argparse import sys from datetime import timedelta +from os.path import basename import musicpd @@ -29,7 +30,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' })