summaryrefslogtreecommitdiff
path: root/mpv.py
diff options
context:
space:
mode:
authorjaseg <code@jaseg.net>2020-07-12 13:27:53 +0200
committerjaseg <code@jaseg.net>2020-07-12 13:27:53 +0200
commitc3eef35f595bc4aa2c2aa30345ad63ee583e98e1 (patch)
tree94648f0fc8d56199ff33dfe2031164fb3e658bb0 /mpv.py
parent3ef4ecf765820cbb34921a3bc2893e3d2e8c440a (diff)
downloadpython-mpv-c3eef35f595bc4aa2c2aa30345ad63ee583e98e1.tar.gz
python-mpv-c3eef35f595bc4aa2c2aa30345ad63ee583e98e1.tar.bz2
python-mpv-c3eef35f595bc4aa2c2aa30345ad63ee583e98e1.zip
Fix handling of dashed options in loadfile.
Add tests based on --sub-file. Also add a test for sub_add here.
Diffstat (limited to 'mpv.py')
-rw-r--r--mpv.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mpv.py b/mpv.py
index b0d6917..988e360 100644
--- a/mpv.py
+++ b/mpv.py
@@ -921,7 +921,7 @@ class MPV(object):
@staticmethod
def _encode_options(options):
- return ','.join('{}={}'.format(str(key), str(val)) for key, val in options.items())
+ return ','.join('{}={}'.format(_py_to_mpv(str(key)), str(val)) for key, val in options.items())
def loadfile(self, filename, mode='replace', **options):
"""Mapped mpv loadfile command, see man mpv(1)."""