Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 807 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 807 Bytes

Music Player Script

This Python script is designed to play music files using MPV player.

Requirements

  • Python 3.x
  • MPV player
  • Config.json file containing configuration options

Installation

  1. Clone or download this repository to your local machine.
  2. Install Python 3.x if not already installed.
  3. Install MPV player.
  4. Create a config.json file based on the provided template and configure the options according to your requirements.
  5. Add your music files inside melodies folder

Configuration

The config.json file contains the following options:

  • total_duration_minutes: Total duration of music playback in minutes.
  • custom_command: Custom command to execute after the total duration.

Usage

  1. Run the script by executing the following command: python player.py