From 283d898408eafa4a128a47b20b3116e18974f7c4 Mon Sep 17 00:00:00 2001 From: Greg Gauthier Date: Mon, 15 Mar 2021 19:42:28 +0000 Subject: [PATCH] switch to mpv, because its way better --- .gitignore | 1 + radiomenu.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index dad812a..5186c2d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .DS_Store +__pycache__/ .idea/ *.lock diff --git a/radiomenu.py b/radiomenu.py index 1ca944f..bf4258e 100644 --- a/radiomenu.py +++ b/radiomenu.py @@ -16,7 +16,7 @@ class RadioMenu(AbstractMenu): station_list[i]["codec"] + " " + station_list[i]["bitrate"] + " " + station_list[i]["url"], - lambda url=station_list[i]["url"]: subprocess.run(["mpg123", url]) + lambda url=station_list[i]["url"]: subprocess.run(["mpv", "--no-video", url]) ) )