Propagate environment variables if set to mpv player before playing
This commit is contained in:
parent
8a6be8b540
commit
376dda616b
1 changed files with 3 additions and 0 deletions
|
@ -60,6 +60,9 @@ class MediaMpvPlugin(MediaPlugin):
|
||||||
if args:
|
if args:
|
||||||
mpv_args.update(args)
|
mpv_args.update(args)
|
||||||
|
|
||||||
|
for k,v in self._env:
|
||||||
|
os.environ[k] = v
|
||||||
|
|
||||||
self._player = mpv.MPV(**mpv_args)
|
self._player = mpv.MPV(**mpv_args)
|
||||||
self._player.register_event_callback(self._event_callback())
|
self._player.register_event_callback(self._event_callback())
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue