From 376dda616b7546fc866eef590a580c81c8760dff Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Tue, 19 Feb 2019 00:58:26 +0100 Subject: [PATCH] Propagate environment variables if set to mpv player before playing --- platypush/plugins/media/mpv.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/platypush/plugins/media/mpv.py b/platypush/plugins/media/mpv.py index 3508dc123..e7d1394be 100644 --- a/platypush/plugins/media/mpv.py +++ b/platypush/plugins/media/mpv.py @@ -60,6 +60,9 @@ class MediaMpvPlugin(MediaPlugin): if args: mpv_args.update(args) + for k,v in self._env: + os.environ[k] = v + self._player = mpv.MPV(**mpv_args) self._player.register_event_callback(self._event_callback())