CLEM2ITUNES(1)

NAME
clem2itunes - clem2itunes v0.1.1

Crazy way to synchronise a remote Strawberry rated library to Music.app using Python, JXA and SSH.

COMMANDS

  clem2itunes

Tools for Strawberry libraries.

    clem2itunes [OPTIONS] COMMAND [ARGS]...

Options

-d, --debug
    Enable debug level logging.

  create-library

Create a curated music library from a Strawberry or Clementine database.

    clem2itunes create-library [OPTIONS] [DIRECTORY]

Options

--database <database>
    Path to the database file.

--include-no-cover
    Include files without embedded cover art.

--no-si
    Do not use SI units.

--split-dir <split_dir>
    Directory to store MP3 files generated by splitting them by their CUE file.

-m, --max-size <max_size>
    Maximum size in GB.

--flac
    Allow FLAC files.

-t, --threshold <threshold>
    Rating threshold out of 1.

    Arguments

DIRECTORY
    Optional argument

  sync

Sync remote library to local machine.

    clem2itunes sync [OPTIONS] HOST

Options

--include-no-cover
    Include files without embedded cover art.

--no-si
    Do not use SI units.

--remote-create-lib <remote_create_lib>
    Remote create-lib script (full path or a file in PATH).

--splitcue-cache-dir <splitcue_cache_dir>
    Remote directory to save split CUE data (%(username)s will be replaced with the current username or the argument to --user).

-S, --size-limit <size_limit>
    Size limit in GB.

-l, --local-dir <local_dir>
    Local directory to sync to.

-r, --remote-dir <remote_dir>
    Remote directory to sync (%(username)s will be replaced with the current username or the argument to --user).

-u, --user <user>
    Remote username.

-t, --threshold <threshold>
    Minimum rating out of 1.

    Arguments

HOST
    Required argument

    create-library is useful for creating a maximally sized library of music for copying to any device based on song ratings. It tries to avoid duplicates, and splits MP3s (losslessly) using CUE files.

    sync is only for use on macOS to copy songs over, add them to iTunes/Music, and set ratings.

SYNC A LIBRARY TO AN ANDROID DEVICE

Assumes the library is at ~/import. You have to create the /sdcard/Music/import directory on the device first.

    for i in ~/import/*; do adb push --sync -Z "$(readlink -f "$i")" /sdcard/Music/import; done

If your machine lacks readlink, use perl -MCwd -le 'print Cwd::abs_path shift' ... instead.

AUTHOR
Andrew Udvare <audvare@gmail.com>

COPYRIGHT
2025