Launch XMPlay using a playlist instead of folders

This commit is contained in:
2Shirt 2023-10-29 19:56:23 -07:00
parent d80de4ac65
commit 25bb433014
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
3 changed files with 3 additions and 5 deletions

View file

@ -352,7 +352,7 @@ LAUNCHERS = {
'L_TYPE': 'Executable',
'L_PATH': 'XMPlay',
'L_ITEM': 'xmplay.exe',
'L_ARGS': r'"%bin%\XMPlay\music.7z"',
'L_ARGS': r'"%bin%\XMPlay\music.m3u"',
},
},
}

View file

@ -1114,10 +1114,7 @@ def open_windows_updates() -> None:
def open_xmplay() -> None:
"""Open XMPlay."""
sleep(2)
xmplay_path = get_tool_path('XMPlay', 'XMPlay')
music_path = xmplay_path.parent.joinpath('music')
cmd = [xmplay_path, *[str(item) for item in music_path.glob('**/')]]
popen_program(cmd)
run_tool('XMPlay', 'XMPlay', 'music.m3u', cwd=True, popen=True)
def run_shutup_10():

View file

@ -0,0 +1 @@
music\ZOMBIES.IT