Log error and warning for invalid device.wvd file

This commit is contained in:
GladistonXD
2026-01-29 09:16:43 -03:00
committed by GitHub
parent 9c7a76a477
commit e903e5e8f3
+3
View File
@@ -470,6 +470,9 @@ class SpotifyApi:
self.WIDEVINE_LICENSE_API_URL.format(type=media_type),
challenge,
)
if response.status_code == 403:
logger.error(f"The device.wvd file is invalid or banned.")
logger.warning(f'Delete the device.wvd file to use the alternate key.')
check_response(response)
return response.content