From 70fe2459debfcd06342a7ec2ef47e984722c3046 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Fri, 21 Feb 2020 18:29:40 +0100 Subject: [PATCH] _event_callbacks is a protected attribute of mpv.MPV --- platypush/plugins/media/mpv.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/platypush/plugins/media/mpv.py b/platypush/plugins/media/mpv.py index 23f95f37..11512795 100644 --- a/platypush/plugins/media/mpv.py +++ b/platypush/plugins/media/mpv.py @@ -56,7 +56,8 @@ class MediaMpvPlugin(MediaPlugin): os.environ[k] = v self._player = mpv.MPV(**mpv_args) - self._player.event_callbacks += self._event_callback() + # noinspection PyProtectedMember + self._player._event_callbacks += [self._event_callback()] @staticmethod def _post_event(evt_type, **evt):