diff options
author | jaseg <code@jaseg.net> | 2020-07-12 13:27:53 +0200 |
---|---|---|
committer | jaseg <code@jaseg.net> | 2020-07-12 13:27:53 +0200 |
commit | c3eef35f595bc4aa2c2aa30345ad63ee583e98e1 (patch) | |
tree | 94648f0fc8d56199ff33dfe2031164fb3e658bb0 /mpv.py | |
parent | 3ef4ecf765820cbb34921a3bc2893e3d2e8c440a (diff) | |
download | python-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.py | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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).""" |