- commit
- 497d020a526b8c7a77693408cd0a2bfcfff550b0
- parent
- 39166f4f5aecef36c2d307b0f119d84daff41b9e
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2021-07-17 17:50
create playlist.load shortcut
Diffstat
| M | cplay.py | 9 | ++++++--- |
1 files changed, 6 insertions, 3 deletions
diff --git a/cplay.py b/cplay.py
@@ -470,9 +470,7 @@ class Filelist(List): 470 470 playlist.active = -1 471 471 player.play(item) 472 472 elif ext == 'm3u':473 -1 playlist.clear()474 -1 playlist.add_playlist(item)475 -1 playlist.path = item-1 473 playlist.load(item) 476 474 app.toggle_tabs() 477 475 elif key == curses.KEY_BACKSPACE: 478 476 if self.rsearch_str: @@ -609,6 +607,11 @@ class Playlist(List): 609 607 else: 610 608 return 0 611 609 -1 610 def load(self, path): -1 611 self.clear() -1 612 self.add_playlist(path) -1 613 self.path = path -1 614 612 615 def write(self): 613 616 if not self.path: 614 617 return