From 22373ba7baef6692c52998457981b44f69103ec0 Mon Sep 17 00:00:00 2001 From: jaseg Date: Sun, 6 Aug 2017 21:45:19 +0200 Subject: Restore compatibility with older libmpv versions At least v0.26.0 also works with the unfixed version --- mpv.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- cgit