diff --git a/api/chaoxing.py b/api/chaoxing.py index eba05d5..facdf98 100644 --- a/api/chaoxing.py +++ b/api/chaoxing.py @@ -186,7 +186,7 @@ def get_knowledge(self, clazzid, courseid, knowledgeid, num): def get_attachments(self, text): if res := re.search( - r'window\.AttachmentSetting =({\"hiddenConfig\":false,\"attachments\":.*})', + r'window\.AttachmentSetting =({.*"hiddenConfig":false,.*"attachments":.*})', text): attachments = json.loads(res[1]) self.logger.debug("---attachments info begin---")