allow flac

This commit is contained in:
Asaril 2023-05-21 00:24:00 +02:00
parent ae91ed44c4
commit 0e2e849483

View file

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