A possible fix for "mpv timed out, restarting"

https://forums.ankiweb.net/t/anki-wont-open-mpv-timed-out/7579/6
This commit is contained in:
kelciour 2021-08-18 00:47:04 +03:00
parent 2265bfe71d
commit fae816e68e

View file

@ -554,7 +554,7 @@ class MPV(MPVBase):
# XXX We manually have to check for the existence of the property name.
# Apparently observe_property does not check it :-(
proplist = self.command("get_property", "property-list")
proplist = self.command("get_property", "property-list", timeout=5)
if name not in proplist:
raise MPVError(f"no such property {name!r}")