From 3bc92fd3801d8dc17673b6012d59169884205c4e Mon Sep 17 00:00:00 2001 From: Florian Metz Date: Sat, 11 Jan 2025 04:53:47 +0100 Subject: [PATCH] fix: deepscan issue --- websites/D/Disney+/presence.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/websites/D/Disney+/presence.ts b/websites/D/Disney+/presence.ts index daf46c7001dd..3f234b0c88b3 100644 --- a/websites/D/Disney+/presence.ts +++ b/websites/D/Disney+/presence.ts @@ -96,7 +96,7 @@ presence.on("UpdateData", async () => { const parts = document .querySelector(".subtitle-field") ?.textContent.match(/S(\d+):E(\d+) /); - if (parts.length > 2) + if (parts?.length > 2) presenceData.largeImageText = `Season ${parts[1]}, Episode ${parts[2]}`; presenceData.state = document