diff --git a/gram_core b/gram_core index 968b3fd5..3057fba7 160000 --- a/gram_core +++ b/gram_core @@ -1 +1 @@ -Subproject commit 968b3fd52d699c65648ecab22b3c7ab1f2d32d52 +Subproject commit 3057fba7a6e84be60ece1ab98e6cd012aba37e78 diff --git a/modules/apihelper/client/components/hyperion.py b/modules/apihelper/client/components/hyperion.py index cee6f50b..8f26e722 100644 --- a/modules/apihelper/client/components/hyperion.py +++ b/modules/apihelper/client/components/hyperion.py @@ -43,7 +43,7 @@ class Hyperion: # https://m.miyoushe.com/ys/#/article/32497914 :return: post_id """ - rgx = re.compile(r"(?:bbs|www\.)?(?:miyoushe|mihoyo)\.com/[^.]+/article/(?P\d+)") + rgx = re.compile(r"(?:bbs|www\.)?(?:miyoushe|mihoyo)\.(.*)/[^.]+/article/(?P\d+)") matches = rgx.search(text) if matches is None: return -1 diff --git a/plugins/admin/post.py b/plugins/admin/post.py index 652970f1..a07728eb 100644 --- a/plugins/admin/post.py +++ b/plugins/admin/post.py @@ -130,7 +130,7 @@ class Post(Plugin.Conversation): InlineKeyboardButton("取消", callback_data=f"post_admin|cancel|{post_info.post_id}"), ] ] - url = f"https://www.miyoushe.gay/{self.short_name}/article/{post_info.post_id}" + url = f"https://www.miyoushe.pp.ua/{self.short_name}/article/{post_info.post_id}" text = f"发现官网推荐文章 {post_info.subject}\n是否开始处理" try: await context.bot.send_message(