Ytplay
CLI to play songs from the terminal using youtube-dl
Install / Use
/learn @Parth576/YtplayREADME
ytplay
Search and play songs right from your terminal!
Dependencies
- youtube-dl
- ffmpeg (This program currently uses the
ffplayutility to play audio)
Installation
- Get API key for the Youtube API by creating a new project here and then generate credentials
- Install youtube-dl and ffmpeg
- [For Windows] Add
youtube-dl.exeandffplay.exeto the path - Download the binary from the releases section of this repository
- [For Linux] Make the binary executable
- [For Windows] Add the binary to the path to execute from anywhere
Usage
- List all available flags
ytplay -horytplay --help - Run
ytplay -key <your-api-key>(API key needs to be set in order to search for songs from YouTube) - Then just search for songs by keyword
ytplay search <keyword>(Make sure there are no spaces in the keyword) - Ctrl+C is used for pausing/stopping the song
- A song stopped with ^C can be resumed by typing
ytplay -resume
Note
- The Youtube API has a default quota of 10k units per day
- Each search request consumes 100 units
- That means you can search for 100 songs per day and the quota will be reset for the next day
TODO
- Tests
- Creating and managing playlists
- Use a Go audio libary like faiface/beep or oto (remove ffplay dependency)
- Improve UI by using TUI libs
Related Skills
node-connect
349.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
109.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
349.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
349.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
