From b7999e13ff0ce7b35ee639cba69b789835b1e888 Mon Sep 17 00:00:00 2001 From: Et0h Date: Mon, 1 Jul 2024 22:11:32 +0100 Subject: [PATCH] Fix mpv.net 'auto load folder' playlist advancement bug --- syncplay/constants.py | 1 + syncplay/players/mpvnet.py | 1 + 2 files changed, 2 insertions(+) diff --git a/syncplay/constants.py b/syncplay/constants.py index 0cc124b5..b23ad315 100755 --- a/syncplay/constants.py +++ b/syncplay/constants.py @@ -269,6 +269,7 @@ def getValueForOS(constantDict): 'term-playing-msg': '\nANS_filename=${filename}\nANS_length=${=duration:${=length:0}}\nANS_path=${path}\n', 'keep-open-pause': 'yes' } +MPV_NET_EXTRA_ARGS = { 'auto-load-folder': 'no' } IINA_PROPERTIES = {'geometry': '25%+100+100', 'idle': 'yes', diff --git a/syncplay/players/mpvnet.py b/syncplay/players/mpvnet.py index 1ee77964..64da5ed4 100644 --- a/syncplay/players/mpvnet.py +++ b/syncplay/players/mpvnet.py @@ -8,6 +8,7 @@ class MpvnetPlayer(MpvPlayer): @staticmethod def run(client, playerPath, filePath, args): + args.extend(constants.MPV_NET_EXTRA_ARGS) constants.MPV_NEW_VERSION = True constants.MPV_OSC_VISIBILITY_CHANGE_VERSION = True return MpvnetPlayer(client, MpvnetPlayer.getExpandedPath(playerPath), filePath, args)