diff options
author | Frechdachs <Frechdachs@users.noreply.github.com> | 2016-02-12 12:36:18 +0100 |
---|---|---|
committer | jaseg <code@jaseg.net> | 2016-02-12 14:09:21 +0100 |
commit | ee8316a282d0fed860a98b0edb481739f801c6c6 (patch) | |
tree | cc37d213a8987bcb65c2d8ef65ff1126c8e89223 /mpv.py | |
parent | 5605380fcbb724b180ed61d9ce7811018eb2e909 (diff) | |
download | python-mpv-ee8316a282d0fed860a98b0edb481739f801c6c6.tar.gz python-mpv-ee8316a282d0fed860a98b0edb481739f801c6c6.tar.bz2 python-mpv-ee8316a282d0fed860a98b0edb481739f801c6c6.zip |
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.
Diffstat (limited to 'mpv.py')
-rw-r--r-- | mpv.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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'), |