Mpv v0.38 throws errors with hypnotix and iptvnator

mpv v1.0.38 throws errors with hypnotix and iptvnator.

Exception in thread Thread-3 (play_async):
Traceback (most recent call last):
  File "/usr/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.11/threading.py", line 982, in run
    self._target(*self._args, **self._kwargs)
  File "/usr/lib/hypnotix/hypnotix.py", line 908, in play_async
    self.mpv.play(channel.url)
  File "/usr/lib/hypnotix/mpv.py", line 1648, in play
    self.loadfile(filename)
  File "/usr/lib/hypnotix/mpv.py", line 1151, in loadfile
    self.command('loadfile', filename.encode(fs_enc), mode, MPV._encode_options(options))
  File "/usr/lib/hypnotix/mpv.py", line 1043, in command
    _mpv_command(self.handle, (c_char_p*len(args))(*args))
  File "/usr/lib/hypnotix/mpv.py", line 133, in raise_for_ec
    raise ex(ec, *args)
ValueError: ('Invalid value for mpv parameter', -4, (<MpvHandle object

downgrading to mpv v1.037.0 solves the problem

edit: i forgot the version starts with v1…

The same has happened for me; I use ‘python-mpv’ :
https://github.com/jaseg/python-mpv

After putting version 1.0.7 of python-mpv in place,
it works fine with mpv 0.38.

Your error message with raise_for_ec looks very like what I got,
so I guess hypnotix uses python-mpv, and they need to update it.