From 667ec6f1807b3d5d242a31820de4e9339d8ee857 Mon Sep 17 00:00:00 2001 From: jaseg Date: Thu, 25 Aug 2016 07:41:34 +0200 Subject: [PATCH] Fix property access in README example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index a533ee3..b02111f 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ def my_log(loglevel, component, message): player = mpv.MPV(log_handler=my_log, ytdl=True, input_default_bindings=True, input_vo_keyboard=True) # Property access, these can be changed at runtime -player.observe_property('time-pos', lambda _property, pos: print('Now playing at {:.2f}s'.format(pos))) +player.observe_property('time-pos', lambda pos: print('Now playing at {:.2f}s'.format(pos))) player.fullscreen = True player.loop = 'inf' # Option access, in general these require the core to reinitialize