From 41a8c694ecd79f646df2e44c2a07914d71e66bb3 Mon Sep 17 00:00:00 2001 From: eight04 Date: Thu, 4 Jan 2024 11:37:21 +0800 Subject: [PATCH] Fix: LZString vm error --- comiccrawler/mods/seemh.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/comiccrawler/mods/seemh.py b/comiccrawler/mods/seemh.py index fdd8c44..f87d637 100644 --- a/comiccrawler/mods/seemh.py +++ b/comiccrawler/mods/seemh.py @@ -33,7 +33,8 @@ def init(self, html, url): return cryptojs = re.search(r'src="([^"]+?/crypt_\w+?\.js)"', html).group(1) cryptojs = grabhtml(urljoin(url, cryptojs), referer=url) - self.vm = VM(f"window = self; {cryptojs}") + self.vm = VM(f"window = self; {cryptojs}; delete String.prototype.splic;") + self.vm.create() def decompress_from_base64(self, data): return self.vm.call("LZString.decompressFromBase64", data)