From ee8316a282d0fed860a98b0edb481739f801c6c6 Mon Sep 17 00:00:00 2001 From: Frechdachs Date: Fri, 12 Feb 2016 12:36:18 +0100 Subject: Fix percent-pos property The 'percent-pos' property has to be float. Trying to retrieve this property was raising an exception, because e.g. 'int("0.0000")' raises a ValueError. --- mpv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mpv.py b/mpv.py index 71f2ee7..0fa43a2 100644 --- a/mpv.py +++ b/mpv.py @@ -525,7 +525,7 @@ ALL_PROPERTIES = { 'avsync': (float, 'r'), 'total-avsync-change': (float, 'r'), 'drop-frame-count': (int, 'r'), - 'percent-pos': (int, 'rw'), + 'percent-pos': (float, 'rw'), 'ratio-pos': (float, 'rw'), 'time-pos': (float, 'rw'), 'time-start': (float, 'r'), -- cgit