diff options
author | jaseg <code@jaseg.net> | 2016-08-25 07:41:34 +0200 |
---|---|---|
committer | jaseg <code@jaseg.net> | 2016-08-25 07:41:34 +0200 |
commit | 667ec6f1807b3d5d242a31820de4e9339d8ee857 (patch) | |
tree | 4c474d89b875c3584c97d6b134833258880887ca /README.md | |
parent | b71e8a4a55ce68f4594043120fd52e536509bf1e (diff) | |
download | python-mpv-667ec6f1807b3d5d242a31820de4e9339d8ee857.tar.gz python-mpv-667ec6f1807b3d5d242a31820de4e9339d8ee857.tar.bz2 python-mpv-667ec6f1807b3d5d242a31820de4e9339d8ee857.zip |
Fix property access in README example
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |