pympv icon indicating copy to clipboard operation
pympv copied to clipboard

Commands containing unicode

Open improbable0101 opened this issue 8 years ago • 2 comments

Is it possible to send commands containing unicode?

>>> import mpv
>>> m = mpv.Context()
>>> m.initialize()
>>> m.command('loadfile', u'a–b.mp3')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "mpv.pyx", line 560, in mpv.Context.command (mpv.c:8989)
mpv.MPVError: invalid parameter

improbable0101 avatar Jul 25 '16 00:07 improbable0101

That was supposed to work, I have not looked in this code in a long time though. May have only worked in py3

On Jul 24, 2016 8:24 PM, "improbable0101" [email protected] wrote:

Is it possible to send commands containing unicode?

import mpv m = mpv.Context() m.initialize() m.command('loadfile', u'a–b.mp3') Traceback (most recent call last): File "", line 1, in File "mpv.pyx", line 560, in mpv.Context.command (mpv.c:8989) mpv.MPVError: invalid parameter

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/andre-d/pympv/issues/6, or mute the thread https://github.com/notifications/unsubscribe-auth/AArlskFYLQpQmwyHk-iCYu0Nit3DTaWdks5qZAJTgaJpZM4JTtRZ .

andre-d avatar Jul 25 '16 00:07 andre-d

Fixed in marcan@91fe73b6009d8c97757322fa851786a9194c5459, not sure why it hasn't been sent upstream.

tsudoko avatar Nov 25 '16 10:11 tsudoko