From d8753b3a99b34730dc59fb61e3fdb55dc1d57a72 Mon Sep 17 00:00:00 2001 From: Gingka/Ginger Pepper Date: Thu, 3 Feb 2022 23:16:51 -0500 Subject: [PATCH 1/2] Switch from "afplay" to "mpv" for cross-platform support --- src/libs/playback.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ) From ad7abd994df8dd9f75db3b8146cd04b4e4a941d6 Mon Sep 17 00:00:00 2001 From: Gingka/Ginger Pepper Date: Tue, 8 Feb 2022 16:34:31 -0500 Subject: [PATCH 2/2] Add mpv to the prerequisites --- README.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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