Skip to content

Commit

Permalink
Fix mpv.net 'auto load folder' playlist advancement bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Et0h committed Jul 1, 2024
1 parent 095cc4d commit b7999e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions syncplay/constants.py
Original file line number Diff line number Diff line change
Expand Up @@ -269,6 +269,7 @@ def getValueForOS(constantDict):
'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',
Expand Down
1 change: 1 addition & 0 deletions syncplay/players/mpvnet.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b7999e1

Please sign in to comment.