Use safe lookup for PSSH in seek table

This commit is contained in:
Rafael Moraes
2026-03-02 09:58:22 -03:00
parent e2011f8900
commit de32493da7
+1 -1
View File
@@ -98,7 +98,7 @@ class SpotifyAudioInterface(SpotifyBaseInterface):
file_id: str,
) -> str:
seek_table_response = await self.api.get_seek_table(file_id)
pssh = seek_table_response["pssh_widevine"]
pssh = seek_table_response.get("pssh", seek_table_response.get("widevine_pssh"))
logger.debug(f"Received PSSH: {pssh}")