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})")