Skip to content

ee25b003/MusicPlayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

MusicPlayer

A terminal-based music player in Python that can play local songs, YouTube songs, and manage playlists. Built using curses for UI and vlc for audio playback.


Features

  • Browse and play local songs from the songs folder
  • Search and play songs from YouTube
  • Create, view, and play playlists (sequential or shuffled)
  • Real-time progress bar and playback controls
  • Preloads next songs for smoother playback

Requirements

1. VLC Media Player

The program relies on VLC for audio playback.

  • Windows:
    Install VLC from here.
    (You can download the .exe file for the 3.0.21 version from the prerequisites folder)

  • Linux:
    Install VLC using your package manager. For example:

    sudo apt install vlc

2. Python Libraries

Install the required Python libraries using pip:

pip install curses
pip install python-vlc
pip install yt-dlp
pip install requests

Note: For Windows, you need to run the command pip install windows-curses instead of pip install curses.


Setup

  1. Clone or download this repository.
  2. Ensure VLC is installed.
  3. Make sure to have the folder named songs and add your local audio files (e.g., .mp3, .wav).

How to Run

Run the program using:

python main.py

You’ll see a terminal menu with options:

  • Folder: Browse and play local songs
  • Playlist: View, add, or play songs from your playlist
  • Web Search: Search YouTube and play songs
  • Exit: Quit the program

Controls in Player

  • P: Pause / Resume
  • R: Restart current song
  • Q: Quit player
  • N: Next song (in playlist mode)
  • B: Previous song (in playlist mode)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages