From ae1899622154e3f2e13da655bd3f913c0312e786 Mon Sep 17 00:00:00 2001 From: amd64fox <62529699+amd64fox@users.noreply.github.com> Date: Thu, 16 Mar 2023 04:28:11 +0300 Subject: [PATCH] backward compatibility for podcastsoff2 --- patches/patches.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/patches.json b/patches/patches.json index d6802c0..4e8407f 100644 --- a/patches/patches.json +++ b/patches/patches.json @@ -122,7 +122,7 @@ "do": "" }, "match": "(\\!Array.isArray\\(.\\)\\|\\|.===..length\\)return null;)", - "replace": "$1 for (let i = 0; i < e.length; i++) { const key = e.children?.[i]?.key || e[i]?.key; if (!key || key.includes('episode') || key.includes('show')) { return null;}};" + "replace": "$1 for (let i = 0; i < (e.children ? e.children.length : e.length); i++) {const key = (e.children?.[i] || e[i])?.key; if (!key || key.includes('episode') || key.includes('show')) { return null;}};" }, "adsectionsoff": { "version": {