This Python script is designed to play music files using MPV player.
- Python 3.x
- MPV player
- Config.json file containing configuration options
- Clone or download this repository to your local machine.
- Install Python 3.x if not already installed.
- Install MPV player.
- Create a
config.json
file based on the provided template and configure the options according to your requirements. - Add your music files inside melodies folder
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.
- Run the script by executing the following command: python player.py