A simple Python script that allows you to search for songs or artists on YouTube Music and play them using the mpv
media player.
- Search for songs or artists directly from the terminal.
- Play the selected songs with
mpv
. - Enhanced terminal output with colored song titles.
- Uses the
YTMusicAPI
for fetching song details.
- Python 3
mpv
media playerYTMusicAPI
- Clone the repository: git clone https://github.com/polyphasicdevs/YouTubeMusicCommand-LineApplet.git
cd ytmusic-mpv-player
- Install the required Python packages:
pip install ytmusicapi
- Make sure you have
mpv
installed. If not, you can install it using your package manager. For example, on Ubuntu:
sudo apt-get install mpv
- Run the script:
./ytmusiccmus.py 2. Enter the name of the song or artist you want to listen to. 3. Enjoy the music!
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.