cplay-ng

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

commit
4c8298087cbb49c9acec0811f6d7dd3ef7cc94e3
parent
aafaf818ee99fddfd08785ef41fb4452d6a0708e
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2020-09-05 07:13
allow to close playlist

Diffstat

M cplay.py 4 ++++

1 files changed, 4 insertions, 0 deletions


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

@@ -47,6 +47,7 @@ d, D         : delete item/all
   47    47 m, M         : move item down/up
   48    48 r, R         : toggle repeat/random
   49    49 s, S         : shuffle/sort playlist
   -1    50 C            : close current playlist
   50    51 @            : jump to current track"""
   51    52 
   52    53 
@@ -586,6 +587,9 @@ class Playlist(List):
  586   587             self.remove_item()
  587   588         elif key == 'D':
  588   589             self.clear()
   -1   590         elif key == 'C':
   -1   591             self.clear()
   -1   592             self.path = None
  589   593         elif key == '\n':
  590   594             if not self.items:
  591   595                 return True