From 7b2c53b405b7d78fe634f9e15be049e63eb5e89d Mon Sep 17 00:00:00 2001 From: Rafael Moraes <50295204+glomatico@users.noreply.github.com> Date: Thu, 26 Mar 2026 14:40:18 -0300 Subject: [PATCH] Decrypt FLAC and check encrypted_path --- votify/downloader/audio.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/votify/downloader/audio.py b/votify/downloader/audio.py index bc757c4..cca12c8 100644 --- a/votify/downloader/audio.py +++ b/votify/downloader/audio.py @@ -107,7 +107,9 @@ class SpotifyAudioDownloader(SpotifyBaseDownloader): else decryption_key ) - if staged_path.lower().endswith(".ogg"): + if encrypted_path.lower().endswith(".ogg") or encrypted_path.lower().endswith( + ".flac" + ): await asyncio.to_thread( self._decrypt_playplay, decryption_key,