Spotify Safe Play
Use this skill when the user wants to play Spotify tracks, albums, or playlists and the machine is known to have unreliable direct spogo play behavior.
Files included with this skill
- - Wrapper script: INLINECODE1
Preferred commands
- - Search track: INLINECODE2
- Search album: INLINECODE3
- Search playlist: INLINECODE4
- Safe playback: INLINECODE5
- Pause / resume / next / previous:
spogo pause, spogo play, spogo next, INLINECODE9 - Devices:
spogo device list, INLINECODE11 - Status: INLINECODE12
Playback rules
- - For tracks, the wrapper safely queues the requested track and skips to it.
- For albums and playlists, the wrapper expands the public Spotify page into track URIs, queues them in normal order, skips once into the first track, then exits immediately.
- After the first target track starts, do not send extra
next, play, or verification loops. - Avoid direct
spogo play <track> on affected machines because it may resume the current context instead of switching to the requested content. - If the user has separately installed
spotify-safe-play into PATH, spotify-safe-play <item> ... is also acceptable.
Requirements
- - Spotify Premium
- INLINECODE18 installed and authenticated
- Bash,
curl, grep, and INLINECODE21 - An active Spotify Connect target such as Spotify Web Player or the desktop app
Spotify 安全播放
当用户想要播放 Spotify 曲目、专辑或播放列表,且已知该机器上直接使用 spogo play 行为不可靠时,使用此技能。
本技能包含的文件
- - 包装脚本:./bin/spotify-safe-play
推荐命令
- - 搜索曲目:spogo search track query
- 搜索专辑:spogo search album query
- 搜索播放列表:spogo search playlist query
- 安全播放:./skills/spotify-safe-play/bin/spotify-safe-play [--device ...]
- 暂停 / 继续 / 下一首 / 上一首:spogo pause、spogo play、spogo next、spogo prev
- 设备:spogo device list、spogo device set
- 状态:spogo status
播放规则
- - 对于曲目,包装脚本安全地将请求的曲目加入队列并跳转到该曲目。
- 对于专辑和播放列表,包装脚本将公开的 Spotify 页面展开为曲目 URI,按正常顺序将其加入队列,跳转到第一首曲目,然后立即退出。
- 在第一个目标曲目开始播放后,不要发送额外的 next、play 或验证循环。
- 避免在受影响的机器上直接使用 spogo play
- 如果用户已单独将 spotify-safe-play 安装到 PATH 中,则 spotify-safe-play
- ... 也可接受。
要求
- - Spotify Premium
- 已安装并认证 spogo
- Bash、curl、grep 和 awk
- 一个活跃的 Spotify Connect 目标,如 Spotify Web Player 或桌面应用