diff --git a/README.md b/README.md index 8a7912e..d416a25 100644 --- a/README.md +++ b/README.md @@ -6,14 +6,16 @@ Terminal-based music player written in Python for the best music in the world Browse and listen to [Audius](https://audius.co) from the comfort of your very own terminal. 🎶 -Supported/tested platforms: MacOS 12+  +Supported/tested platforms: MacOS 12+ , Arch Linux -## Install - -📝 Prerequisites: +## 📝 Prerequisites: - ☕ [Homebrew](https://brew.sh/) +- [mpv](https://mpv.io/) + +## Install +### macOS ``` brew tap audiusproject/audius-terminal-player brew install audius-terminal-player diff --git a/src/libs/playback.py b/src/libs/playback.py index a419c01..1d50103 100644 --- a/src/libs/playback.py +++ b/src/libs/playback.py @@ -7,10 +7,10 @@ def stream(track_id): download_uri = api.get_redirect_uri(uri) local_filepath = api.download_file(download_uri) stop() - subprocess.Popen(["afplay", local_filepath]) + subprocess.Popen(["mpv", local_filepath]) def stop(): subprocess.call( - ["killall", "afplay"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL + ["killall", "mpv"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL )