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.
This commit is contained in:
jaseg 2018-07-25 12:07:52 +02:00
parent 4352b01e29
commit a873fd7f7b

2
mpv.py
View file

@ -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)