Skip to content

Commit

Permalink
Fix quit and quit_watch_later commands
Browse files Browse the repository at this point in the history
  • Loading branch information
jaseg committed Aug 14, 2024
1 parent 775fc4a commit ef3f47c
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions mpv.py
Original file line number Diff line number Diff line change
Expand Up @@ -1375,11 +1375,17 @@ def run(self, command, *args):

def quit(self, code=None):
"""Mapped mpv quit command, see man mpv(1)."""
self.command('quit', code)
if code is not None:
self.command('quit', code)
else:
self.command('quit')

def quit_watch_later(self, code=None):
"""Mapped mpv quit_watch_later command, see man mpv(1)."""
self.command('quit_watch_later', code)
if code is not None:
self.command('quit_watch_later', code)
else:
self.command('quit_watch_later')

def stop(self, keep_playlist=False):
"""Mapped mpv stop command, see man mpv(1)."""
Expand Down

0 comments on commit ef3f47c

Please sign in to comment.