chore(protos): Add all possible onesie_proxy_status enum values

This commit is contained in:
Luan
2025-02-15 20:39:13 -03:00
parent d683f123c0
commit 3d0ec848cd
6 changed files with 151 additions and 8 deletions

View File

@@ -227,7 +227,7 @@ async function getBasicInfo(innertube: Innertube, videoId: string): Promise<YT.V
const decryptedData = await decryptResponse(iv, hmac, encrypted, clientConfig.clientKeyData);
const response = Protos.OnesiePlayerResponse.decode(decryptedData);
if (response.onesieProxyStatus !== 1)
if (response.onesieProxyStatus !== Protos.OnesieProxyStatus.ONESIE_PROXY_STATUS_OK)
throw new Error('Onesie proxy status not OK');
if (response.httpStatus !== 200)