From ec7385daa5d9bbe5f202ea18255496fbaf816c47 Mon Sep 17 00:00:00 2001 From: Rafael Moraes <50295204+glomatico@users.noreply.github.com> Date: Wed, 1 Apr 2026 20:30:57 -0300 Subject: [PATCH] Treat file_id and decryption_key as bytes; allow mp4 --- votify/interface/audio.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/votify/interface/audio.py b/votify/interface/audio.py index ebe90c1..143abf5 100644 --- a/votify/interface/audio.py +++ b/votify/interface/audio.py @@ -66,12 +66,6 @@ class SpotifyAudioInterface(SpotifyBaseInterface): stream_info = None if audio_quality.mp4: - if self.api.session_type not in { - SessionType.LIBRESPOT, - SessionType.WEB, - }: - session_type_skipped = True - continue session_type_skipped = False stream_info = await self._get_stream_info_web( media_id=media_id, @@ -161,6 +155,7 @@ class SpotifyAudioInterface(SpotifyBaseInterface): widevine_pssh=pssh, file_format=audio_quality.file_format, actual_file_format=audio_quality.actual_file_format, + file_id=bytes.fromhex(file_id), ), ) @@ -344,7 +339,7 @@ class SpotifyAudioInterface(SpotifyBaseInterface): ) return DecryptionKey( - decryption_key=decryption_key, + decryption_key=bytes(decryption_key), ) async def get_decryption_key(