Fix mpv.net 'auto load folder' playlist advancement bug

This commit is contained in:
Et0h 2024-07-01 22:11:32 +01:00
parent 095cc4d834
commit b7999e13ff
2 changed files with 2 additions and 0 deletions

View File

@ -269,6 +269,7 @@ MPV_ARGS = {'force-window': 'yes',
'term-playing-msg': '<SyncplayUpdateFile>\nANS_filename=${filename}\nANS_length=${=duration:${=length:0}}\nANS_path=${path}\n</SyncplayUpdateFile>',
'keep-open-pause': 'yes'
}
MPV_NET_EXTRA_ARGS = { 'auto-load-folder': 'no' }
IINA_PROPERTIES = {'geometry': '25%+100+100',
'idle': 'yes',

View File

@ -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)