cplay-ng

simple curses audio player
git clone https://git.ce9e.org/cplay-ng.git

commit
7cb9b89a80fd0ee647dd41dd7e1a93d86f124ab1
parent
976ed25ecc6f41a3da1385b3d873c19a7f1b662d
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2020-09-03 16:35
use relative paths in UI

Diffstat

M cplay.py 4 ++--

1 files changed, 2 insertions, 2 deletions


diff --git a/cplay.py b/cplay.py

@@ -245,7 +245,7 @@ class List:
  245   245 
  246   246     def format_item(self, item):
  247   247         if app.verbose:
  248    -1             name = item
   -1   248             name = os.path.relpath(item, filelist.path)
  249   249         else:
  250   250             name = os.path.basename(item)
  251   251         if os.path.isdir(item):
@@ -547,7 +547,7 @@ class Application:
  547   547         if self.input.active:
  548   548             status = '/%s' % self.input.str
  549   549         elif player.path and player._proc:
  550    -1             status = 'Playing %s' % player.path
   -1   550             status = 'Playing %s' % os.path.relpath(player.path, filelist.path)
  551   551         else:
  552   552             status = 'Stopped'
  553   553