cplay-ng

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

commit
3323be696010068e788c68f834708d70d47afcb8
parent
688021304addf92eade2b166c197e5249fe9a0c4
Author
Rosie <42421590+AlkyoneAoide@users.noreply.github.com>
Date
2024-05-19 15:48
Add index to mpv 'loadfile' args

Diffstat

M cplay.py 2 +-

1 files changed, 1 insertions, 1 deletions


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

@@ -213,7 +213,7 @@ class Player:
  213   213             return
  214   214         self.is_playing = True
  215   215         self._playing += 1
  216    -1         self._ipc('loadfile', self.path, 'replace', 'start=%i' % self.position)
   -1   216         self._ipc('loadfile', self.path, 'replace', 0, 'start=%i' % self.position)
  217   217 
  218   218     def play(self, path):
  219   219         if path and (m := re.match(r'^(http.*)#t=([0-9]+)$', path)):