summaryrefslogtreecommitdiff
path: root/mpv.py
diff options
context:
space:
mode:
authorFrechdachs <Frechdachs@users.noreply.github.com>2016-02-12 12:36:18 +0100
committerjaseg <code@jaseg.net>2016-02-12 14:09:21 +0100
commitee8316a282d0fed860a98b0edb481739f801c6c6 (patch)
treecc37d213a8987bcb65c2d8ef65ff1126c8e89223 /mpv.py
parent5605380fcbb724b180ed61d9ce7811018eb2e909 (diff)
downloadpython-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.py2
1 files changed, 1 insertions, 1 deletions
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'),