From f31989d013d32e04de495703152d35523f076cd3 Mon Sep 17 00:00:00 2001 From: Sander Date: Sun, 1 Dec 2024 15:29:12 +0100 Subject: [PATCH] Website parsing error: unable to extract reactContext. Fixes regex capture that prevents the JSON data from loading correctly. The website returned/returns JSON data followed by script>window.netflix = window.netflix || {}; --- resources/lib/utils/website.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/lib/utils/website.py b/resources/lib/utils/website.py index 1e15a6d6d..10ab67326 100644 --- a/resources/lib/utils/website.py +++ b/resources/lib/utils/website.py @@ -56,7 +56,7 @@ PAGE_ITEM_ERROR_CODE = 'models/flow/data/fields/errorCode/value' PAGE_ITEM_ERROR_CODE_LIST = 'models\\i18nStrings\\data\\login/login' -JSON_REGEX = r'netflix\.{}\s*=\s*(.*?);\s*' +JSON_REGEX = r'^.*netflix\.{}\s*=\s*(.*?);\s*.*$' AVATAR_SUBPATH = ['images', 'byWidth', '320'] PROFILE_DEBUG_INFO = ['isAccountOwner', 'isActive', 'isKids', 'maturityLevel', 'language']