Restore compatibility with older libmpv versions

At least v0.26.0 also works with the unfixed version
This commit is contained in:
jaseg 2017-08-06 21:45:19 +02:00
parent cc84e4939b
commit 22373ba7ba

2
mpv.py
View file

@ -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)