summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <code@jaseg.net>2018-07-25 12:07:52 +0200
committerjaseg <code@jaseg.net>2018-07-25 12:07:52 +0200
commita873fd7f7b5cd46c46502996a829f86b8bf01c65 (patch)
tree8535a6dc1ee0323206949b65303e13a1d6ffe023
parent4352b01e292f530327d32ac55bafb730274ab8cd (diff)
downloadpython-mpv-a873fd7f7b5cd46c46502996a829f86b8bf01c65.tar.gz
python-mpv-a873fd7f7b5cd46c46502996a829f86b8bf01c65.tar.bz2
python-mpv-a873fd7f7b5cd46c46502996a829f86b8bf01c65.zip
command: fix default show-text duration param value
The mpv manpage seems to be wrong here. A look at mpv's command.c show that -1 works fine here.
-rw-r--r--mpv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpv.py b/mpv.py
index cd3fc3b..831a813 100644
--- a/mpv.py
+++ b/mpv.py
@@ -755,7 +755,7 @@ class MPV(object):
"""Mapped mpv osd command, see man mpv(1)."""
self.command('osd')
- def show_text(self, string, duration='-', level=None):
+ def show_text(self, string, duration='-1', level=None):
"""Mapped mpv show_text command, see man mpv(1)."""
self.command('show_text', string, duration, level)