Restore compatibility with older libmpv versions
At least v0.26.0 also works with the unfixed version
This commit is contained in:
parent
cc84e4939b
commit
22373ba7ba
1 changed files with 1 additions and 1 deletions
2
mpv.py
2
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue