Skip to content
프로젝트

소개

An unofficial Yandex Music terminal client.

디자인 및 미디어

이 수치를 측정하는 방법

What you can do

  • Radio configuration
  • Liked playlists
  • Display user playlists
  • Play from playlist

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
+21
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

yamusic-tui

GitHub License Release

An unofficial Yandex Music terminal client.
Based on yandex-music-open-api.

screenshot

Requirements

To use this client, you should have a valid Yandex Music account and an access token.
The easiest way to get a token is to use a browser extension (Chrome, Firefox).

Implemented features

  • Player
    • Play/pause
    • Switch track
    • Play progress
    • Rewind
    • Like/unlike
    • Share
    • Synced lyrics
  • Radio
    • My wave
    • Radio configuration
  • Likes
    • Liked tracks
    • Liked playlists
    • Liked artists
    • Liked albums
  • Playlists
    • Display user playlists
    • Play from playlist
    • Add/remove track to playlist
    • Create/remove playlist
    • Rename playlist
  • Caching
  • Search
  • Landing

Installation

If you have Go installed on your PC:

go install github.com/dece2183/yamusic-tui@latest

Or just download the binary from the releases page.

Also available Gentoo Linux ebuild.

Configuration

The configuration file is located at ~/.config/yamusic-tui/config.yaml.

This is the default configuration which is automatically created after the first login:

token: <your yandex music token>
buffer-size-ms: 80
rewind-duration-s: 5
volume: 0.5
volume-step: 0.05
show-errors: false
show-lyrics: false
cache-tracks: likes # none/likes/all
cache-dir: ""
proxy: "" # proxy server URL; if not specified, uses the HTTP_PROXY and HTTPS_PROXY environment variables
ssl-certs: [] # path to certificate files in PEM format
search:
    artists: true
    popular: false
    albums: false
    playlists: false
controls:
   quit: ctrl+q,ctrl+c
   apply: enter
   cancel: esc
   cursor-up: up
   cursor-down: down
   show-all-keys: ?
   playlists-up: ctrl+up
   playlists-down: ctrl+down
   playlists-rename: ctrl+r
   playlists-hide: ctrl+b
   tracks-next-page: pgup
   tracks-previous-page: pgdown
   tracks-like: l
   tracks-artist: ctrl+j
   tracks-add-to-playlist: a
   tracks-remove-from-playlist: ctrl+a
   tracks-share: ctrl+s
   tracks-shuffle: ctrl+x
   tracks-search: ctrl+f
   tracks-back: backspace
   tracks-hide: ctrl+t
   player-pause: space
   player-next: right
   player-previous: left
   player-rewind-forward: ctrl+right
   player-rewind-backward: ctrl+left
   player-like: L
   player-cache: S
   player-vol-up: +,=
   player-vol-down: '-'
   player-toggle-lyrics: t
   player-hide: ctrl+p
style:
   volume-indicator-width: 16
   volume-indicator-autohide-at: 64
   side-panel-width: 32
   side-panel-autohide-at: 96
   search-modal-width: 56
   icons:
      play: ▶
      stop: ■
      liked: 💛
      not-liked: 🤍
      cached: 💿
      lyrics-dot: •
      volume-off: 🔇
      volume-low: 🔈
      volume-mid: 🔉
      volume-high: 🔊
   colors:
      accent: '#FC0'
      error: '#F33'
      border: '#444'
      background: '#6b6b6b'
      playlist-selection: '#4a3c00'
      active-text: '#EEE'
      normal-text: '#CCC'
      inactive-text: '#888'
      track-title-text: '#dcdcdc'
      track-version-text: '#999'
      track-artist-text: '#bbb'
      lyrics-previous: '#444'
      lyrics-current: '#EEE'
      lyrics-next: '#777'

By default, all cached tracks are stored in the system cache directory. ~/.cache/yamusic-tui on Linux and ~/AppData/Local/yamusic-tui on Windows. You can change this behavior by specifying a preferred cache directory in the cache-dir field.

You can list multiple keys for the same control, separated by commas.

Increase the buffer-size-ms if you have glitches or stutters.

System media controls

win11-smtc-example

Yamusic-tui supports the system media control interfaces: MPRIS on Linux, SMTC on Windows, and MPRemoteCommandCenter on macOS.

This feature is enabled by default, however for compatibility reasons you can disable it by building the app with the nomedia tag or downloading a release with the -nomedia suffix.

go build -tags='nomedia'

macOS

On macOS, media key support uses MPRemoteCommandCenter and MPNowPlayingInfoCenter, which display the current track in the system Now Playing widget and respond to media keys / Touch Bar controls.

Due to a Go linker limitation, the binary must be built with an external linker to include the required LC_UUID load command (enforced by dyld on macOS 15+):

go build -ldflags="-linkmode=external" -o yamusic-tui .

관련 프로젝트 살펴보기

불러오는 중…