From 8b5cafff3d113dd8a86a9006626513a90ccb3b1b Mon Sep 17 00:00:00 2001 From: AnimeDL Date: Thu, 23 May 2024 17:54:54 -0700 Subject: [PATCH] [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 --- crunchy.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/crunchy.ts b/crunchy.ts index 69cacbd..aba65c4 100644 --- a/crunchy.ts +++ b/crunchy.ts @@ -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}); }