_event_callbacks is a protected attribute of mpv.MPV

This commit is contained in:
Fabio Manganiello 2020-02-21 18:29:40 +01:00
parent 9ee81d7999
commit 70fe2459de

View file

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