name: spotify-player description: 通过 spogo(首选)或 spotify_player 进行终端 Spotify 播放/搜索。 homepage: https://www.spotify.com metadata: { “otto”: { “emoji”: “🎵”, “requires”: { “anyBins”: [“spogo”, “spotify_player”] }, “install”: [ { “id”: “brew”, “kind”: “brew”, “formula”: “spogo”, “tap”: “steipete/tap”, “bins”: [“spogo”], “label”: “安装 spogo(brew)”, }, { “id”: “brew”, “kind”: “brew”, “formula”: “spotify_player”, “bins”: [“spotify_player”], “label”: “安装 spotify_player(brew)”, }, ], }, }
spogo / spotify_player
使用 spogo (首选) 进行 Spotify 播放/搜索。如有需要,回退到 spotify_player。
要求
- Spotify Premium 账户。
- 已安装
spogo或spotify_player。
spogo 设置
- 导入 cookies:
spogo auth import --browser chrome
常见 CLI 命令
- 搜索:
spogo search track "查询" - 播放控制:
spogo play|pause|next|prev - 设备:
spogo device list,spogo device set "<名称|id>" - 状态:
spogo status
spotify_player 命令(备用)
- 搜索:
spotify_player search "查询" - 播放控制:
spotify_player playback play|pause|next|previous - 连接设备:
spotify_player connect - 喜欢曲目:
spotify_player like
注意
- 配置文件夹:
~/.config/spotify-player(例如,app.toml)。 - 对于 Spotify Connect 集成,在配置中设置用户
client_id。 - TUI 快捷键可通过应用中的
?使用。