summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjaseg <code@jaseg.net>2017-08-06 21:45:19 +0200
committerjaseg <code@jaseg.net>2017-08-06 21:45:19 +0200
commit22373ba7baef6692c52998457981b44f69103ec0 (patch)
tree40942e74760d60e2c6e6f331838565f274112399
parentcc84e4939b56b6213225a69e422bfea9bccdd252 (diff)
downloadpython-mpv-22373ba7baef6692c52998457981b44f69103ec0.tar.gz
python-mpv-22373ba7baef6692c52998457981b44f69103ec0.tar.bz2
python-mpv-22373ba7baef6692c52998457981b44f69103ec0.zip
Restore compatibility with older libmpv versions
At least v0.26.0 also works with the unfixed version
-rw-r--r--mpv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpv.py b/mpv.py
index cdd6655..29cb70a 100644
--- a/mpv.py
+++ b/mpv.py
@@ -1029,7 +1029,7 @@ class MPV(object):
def __setattr__(self, name, value):
try:
- if name != 'handle':
+ if name != 'handle' and not name.startswith('_'):
self._set_property(_py_to_mpv(name), value)
else:
super().__setattr__(name, value)