Skip to content

Number arguments to mpv are not parsed correctly #16

@alfhj

Description

@alfhj

Number arguments to the MPV constructor are converted to "yes"/"no" when they should't be.

Example:

extra_args = {
    "video-scale-x": 1
}
MPV(**extra_args)

Expected Behavior

MPV starts

Current Behavior

python_mpv_jsonipc.MPVError: MPV process retry limit reached.

Possible Solution

Change MPVProcess_mpv_fmt() to if data is True: and elif data is False

Also: is it possible to include the mpv error in the traceback?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions