Music

Music library tools

Find lossless music on Soulseek and keep it in every format

A Telegram bot turns a song name into a lossless file in your library. It looks the song up on Spotify, searches Soulseek through slskd, ranks the copies and lets you hear one before you save it. A command-line tool upgrades a whole lossy library to FLAC in bulk. A watcher service then writes ALAC, MP3, AAC and Opus copies of each file into their own folders for phones and cars.

Repositories

  • telegram-slskd-local-botTelegram bot that resolves a song on Spotify, searches Soulseek through slskd, ranks the copies and saves the chosen lossless file to your library.
  • slskd-transformCommand-line tool that scans a music library, searches Soulseek through slskd for a FLAC of each track and queues the copies whose length matches.
  • audio-transcode-watcherContainer that watches a source folder and transcodes each audio file into several formats, such as ALAC, MP3, AAC and Opus, in mirrored folder trees.

Run it yourself

mkdir slskd-importer && cd slskd-importer
curl -fsSLO https://raw.githubusercontent.com/GeiserX/telegram-slskd-local-bot/main/docker-compose.yml
curl -fsSL https://raw.githubusercontent.com/GeiserX/telegram-slskd-local-bot/main/.env.example -o .env
# edit .env: TELEGRAM_BOT_TOKEN, TELEGRAM_ALLOWED_USERS (your Telegram user id), SPOTIFY_CLIENT_ID and
# SPOTIFY_CLIENT_SECRET, SLSKD_HOST and SLSKD_API_KEY, SLSKD_DOWNLOAD_PATH (slskd's completed-downloads
# folder) and MUSIC_OUTPUT_PATH (your library); the last two must be writable by uid 1000
mkdir -p data && sudo chown 1000:1000 data    # the container runs as uid 1000
docker compose up -d                          # starts drumsergio/telegram-slskd-local-bot:0.25.2

From the telegram-slskd-local-bot README. Each repository README has the full setup.

More from the club