merge #4906: [patreon] fix bootstrap data extraction (#4904)

This commit is contained in:
Mike Fährmann
2023-12-10 16:53:54 +01:00

View File

@@ -254,6 +254,13 @@ class PatreonExtractor(Extractor):
if bootstrap:
return util.json_loads(bootstrap + "}")
bootstrap = text.extr(
page,
'window.patreon = wrapInProxy({"bootstrap":',
'},"apiServer"')
if bootstrap:
return util.json_loads(bootstrap + "}")
bootstrap = text.extr(page, "window.patreon.bootstrap,", "});")
if bootstrap:
return util.json_loads(bootstrap + "}")