summaryrefslogtreecommitdiff
path: root/mpv.py
diff options
context:
space:
mode:
Diffstat (limited to 'mpv.py')
-rw-r--r--mpv.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/mpv.py b/mpv.py
index 94eeb85..fa6666f 100644
--- a/mpv.py
+++ b/mpv.py
@@ -1375,11 +1375,17 @@ class MPV(object):
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)."""