From 25bb43301468ee14f835c4367f2f146ca9ea6340 Mon Sep 17 00:00:00 2001 From: 2Shirt <2xShirt@gmail.com> Date: Sun, 29 Oct 2023 19:56:23 -0700 Subject: [PATCH] Launch XMPlay using a playlist instead of folders --- scripts/wk/cfg/launchers.py | 2 +- scripts/wk/setup/win.py | 5 +---- setup/windows/bin/XMPlay/music.m3u | 1 + 3 files changed, 3 insertions(+), 5 deletions(-) create mode 100644 setup/windows/bin/XMPlay/music.m3u diff --git a/scripts/wk/cfg/launchers.py b/scripts/wk/cfg/launchers.py index 12b8091a..ce39768b 100644 --- a/scripts/wk/cfg/launchers.py +++ b/scripts/wk/cfg/launchers.py @@ -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"', }, }, } diff --git a/scripts/wk/setup/win.py b/scripts/wk/setup/win.py index dd170b68..68ac6c85 100644 --- a/scripts/wk/setup/win.py +++ b/scripts/wk/setup/win.py @@ -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(): diff --git a/setup/windows/bin/XMPlay/music.m3u b/setup/windows/bin/XMPlay/music.m3u new file mode 100644 index 00000000..37f6e237 --- /dev/null +++ b/setup/windows/bin/XMPlay/music.m3u @@ -0,0 +1 @@ +music\ZOMBIES.IT