From 0e2e849483f36aa625ddd7f2b4b47dd2c7333980 Mon Sep 17 00:00:00 2001 From: Asaril Date: Sun, 21 May 2023 00:24:00 +0200 Subject: [PATCH] allow flac --- src/sleepywaves.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sleepywaves.py b/src/sleepywaves.py index a488659..bcdf24a 100644 --- a/src/sleepywaves.py +++ b/src/sleepywaves.py @@ -302,7 +302,7 @@ class MpdRenderer(Renderer): def get_tracks(self, path: str) -> list[str]: all_files = os.listdir(path) - return sorted([f for f in all_files if f.endswith(".mp3")]) + return sorted([f for f in all_files if (f.endswith(".mp3") or f.endswith(".flac"))]) def play(self, path: str, from_time: int) -> None: log.info(f"MpdRenderer: play({path}, {from_time})")