[CR] Hotfix stream deletion if slow download

Fixes issue where if someone's internet, or the server is so slow that the session expires, it would fail to delete the watch session
This commit is contained in:
AnimeDL 2024-05-23 17:54:54 -07:00
parent 9ea6258fec
commit 8b5cafff3d

View file

@ -2132,6 +2132,7 @@ export default class Crunchy implements ServiceClass {
}
if (switchStream) {
await this.refreshToken(true, true);
await this.req.getData(`https://cr-play-service.prd.crunchyrollsvc.com/v1/token/${currentVersion ? currentVersion.guid : currentMediaId}/${switchStream.token}`, {...{method: 'DELETE'}, ...AuthHeaders});
}