From 76aac48ea2f8e626b03ca419e06f1c4fc99e4042 Mon Sep 17 00:00:00 2001 From: stratumadev Date: Fri, 10 Oct 2025 01:06:22 +0200 Subject: [PATCH] Fixed subtitle download undefined error --- crunchy.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crunchy.ts b/crunchy.ts index 95bba5c..e4c780f 100644 --- a/crunchy.ts +++ b/crunchy.ts @@ -2710,7 +2710,7 @@ export default class Crunchy implements ServiceClass { ) ) continue; - if (options.dlsubs.includes('all') || options.dlsubs.includes(langItem.locale)) { + if ((options.dlsubs.includes('all') || options.dlsubs.includes(langItem.locale)) && subsItem?.url) { const subsAssReq = await this.req.getData(subsItem.url, { headers: api.crunchyDefHeader });