No description
Find a file
2025-11-14 21:52:14 -06:00
.env.example v1.0.8 filename length limit 2025-08-26 12:04:24 -05:00
.gitignore v1.0.0 2025-05-24 20:53:22 -05:00
go.mod v1.0.8 filename length limit 2025-08-26 12:04:24 -05:00
go.sum v1.0.8 filename length limit 2025-08-26 12:04:24 -05:00
main.go v1.0.9 improved file move and folder deletion logic 2025-11-14 21:52:14 -06:00
music-rename v1.0.9 improved file move and folder deletion logic 2025-11-14 21:52:14 -06:00
readme.md updated readme 2025-05-25 17:12:16 -05:00

music rename

move music files in a directory to an organized folder based on tags.

how to use

env

all configuration is done via environment arguments. these will be loaded first from the true environment args, second from ./.env relative to the working directory, and third from ./music-rename.env relative to the executable directory.

all environment variables in .env.example is required.

usage standalone

the first argument is the input path of an album.

./music-rename path/to/album

usage with slskd

slskd's docs are out of date as of writing this and do not explain recent changes made to how scripts are handled.

this script relies on the new method of execution, where data is sent via $SLSKD_SCRIPT_DATA.

add the following to your slskd configuration:

integration:
  scripts:
    music-rename: # this can be renamed
      on:
        - DownloadDirectoryComplete
      run:
        executable: /path/to/music-rename

then configure /path/to/music-rename.env based on #env