Make license parsing asynchronous in AppleMusicInterface

This commit is contained in:
Rafael Moraes
2025-10-30 12:35:31 -03:00
parent 85619a3672
commit a9e1e02ebb
+2 -1
View File
@@ -1,3 +1,4 @@
import asyncio
import base64
import datetime
import logging
@@ -49,7 +50,7 @@ class AppleMusicInterface:
challenge,
)
cdm.parse_license(cdm_session, license["license"])
await asyncio.to_thread(cdm.parse_license, cdm_session, license["license"])
decryption_key_info = next(
i for i in cdm.get_keys(cdm_session) if i.type == "CONTENT"
)