{
  "sha": "b101fbc",
  "node_id": "C_kwDOMndPGNoAKGIxMDFmYmNlODg4NjA4ZTJiYmU1YjVmZDI3OWUxNDY1MTY4ODEyYzc",
  "commit": {
    "author": {
      "name": "xuaner",
      "email": "xuaner_wa@qq.com",
      "date": "2024-09-20T12:08:27Z"
    },
    "committer": {
      "name": "xuaner",
      "email": "xuaner_wa@qq.com",
      "date": "2024-09-20T12:08:27Z"
    },
    "message": "🐛修复B站订阅bug",
    "tree": {
      "sha": "0566306219a434f7122798647498faef692c1879",
      "url": "https://api.github.com/repos/zhenxun-org/zhenxun_bot_plugins/git/trees/0566306219a434f7122798647498faef692c1879"
    },
    "url": "https://api.github.com/repos/zhenxun-org/zhenxun_bot_plugins/git/commits/b101fbce888608e2bbe5b5fd279e1465168812c7",
    "comment_count": 0,
    "verification": {
      "verified": false,
      "reason": "unsigned",
      "signature": null,
      "payload": null,
      "verified_at": null
    }
  },
  "url": "https://api.github.com/repos/zhenxun-org/zhenxun_bot_plugins/commits/b101fbce888608e2bbe5b5fd279e1465168812c7",
  "html_url": "https://github.com/zhenxun-org/zhenxun_bot_plugins/commit/b101fbce888608e2bbe5b5fd279e1465168812c7",
  "comments_url": "https://api.github.com/repos/zhenxun-org/zhenxun_bot_plugins/commits/b101fbce888608e2bbe5b5fd279e1465168812c7/comments",
  "author": {
    "login": "xuanerwa",
    "id": 58063798,
    "node_id": "MDQ6VXNlcjU4MDYzNzk4",
    "avatar_url": "https://avatars.githubusercontent.com/u/58063798?v=4",
    "gravatar_id": "",
    "url": "https://api.github.com/users/xuanerwa",
    "html_url": "https://github.com/xuanerwa",
    "followers_url": "https://api.github.com/users/xuanerwa/followers",
    "following_url": "https://api.github.com/users/xuanerwa/following{/other_user}",
    "gists_url": "https://api.github.com/users/xuanerwa/gists{/gist_id}",
    "starred_url": "https://api.github.com/users/xuanerwa/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/xuanerwa/subscriptions",
    "organizations_url": "https://api.github.com/users/xuanerwa/orgs",
    "repos_url": "https://api.github.com/users/xuanerwa/repos",
    "events_url": "https://api.github.com/users/xuanerwa/events{/privacy}",
    "received_events_url": "https://api.github.com/users/xuanerwa/received_events",
    "type": "User",
    "user_view_type": "public",
    "site_admin": false
  },
  "committer": {
    "login": "xuanerwa",
    "id": 58063798,
    "node_id": "MDQ6VXNlcjU4MDYzNzk4",
    "avatar_url": "https://avatars.githubusercontent.com/u/58063798?v=4",
    "gravatar_id": "",
    "url": "https://api.github.com/users/xuanerwa",
    "html_url": "https://github.com/xuanerwa",
    "followers_url": "https://api.github.com/users/xuanerwa/followers",
    "following_url": "https://api.github.com/users/xuanerwa/following{/other_user}",
    "gists_url": "https://api.github.com/users/xuanerwa/gists{/gist_id}",
    "starred_url": "https://api.github.com/users/xuanerwa/starred{/owner}{/repo}",
    "subscriptions_url": "https://api.github.com/users/xuanerwa/subscriptions",
    "organizations_url": "https://api.github.com/users/xuanerwa/orgs",
    "repos_url": "https://api.github.com/users/xuanerwa/repos",
    "events_url": "https://api.github.com/users/xuanerwa/events{/privacy}",
    "received_events_url": "https://api.github.com/users/xuanerwa/received_events",
    "type": "User",
    "user_view_type": "public",
    "site_admin": false
  },
  "parents": [
    {
      "sha": "a545dfa0c4e149595f7ddd50dc34c55513738fb9",
      "url": "https://api.github.com/repos/zhenxun-org/zhenxun_bot_plugins/commits/a545dfa0c4e149595f7ddd50dc34c55513738fb9",
      "html_url": "https://github.com/zhenxun-org/zhenxun_bot_plugins/commit/a545dfa0c4e149595f7ddd50dc34c55513738fb9"
    }
  ],
  "stats": {
    "total": 4,
    "additions": 2,
    "deletions": 2
  },
  "files": [
    {
      "sha": "0fbc9695db04c56174e3bff933f670d8d2df2abc",
      "filename": "plugins/bilibili_sub/data_source.py",
      "status": "modified",
      "additions": 2,
      "deletions": 2,
      "changes": 4,
      "blob_url": "https://github.com/zhenxun-org/zhenxun_bot_plugins/blob/b101fbce888608e2bbe5b5fd279e1465168812c7/plugins%2Fbilibili_sub%2Fdata_source.py",
      "raw_url": "https://github.com/zhenxun-org/zhenxun_bot_plugins/raw/b101fbce888608e2bbe5b5fd279e1465168812c7/plugins%2Fbilibili_sub%2Fdata_source.py",
      "contents_url": "https://api.github.com/repos/zhenxun-org/zhenxun_bot_plugins/contents/plugins%2Fbilibili_sub%2Fdata_source.py?ref=b101fbce888608e2bbe5b5fd279e1465168812c7",
      "patch": "@@ -271,14 +271,14 @@ async def _get_live_status(id_: int) -> list:\n     sub = await BilibiliSub.get_or_none(sub_id=id_)\n     msg_list = []\n     if sub.live_status != live_status:\n+        await BilibiliSub.sub_handle(id_, live_status=live_status)\n         image = None\n         try:\n             image_bytes = await fetch_image_bytes(cover)\n             image = BuildImage(background = image_bytes)\n         except Exception as e:\n                 logger.error(f\"图片构造失败，错误信息：{e}\")\n     if sub.live_status in [0, 2] and live_status == 1 and image:\n-        await BilibiliSub.sub_handle(id_, live_status=live_status)\n         msg_list = [\n             image,\n             \"\\n\",\n@@ -322,7 +322,7 @@ async def _get_up_status(id_: int) -> list:\n         video = video_info[\"list\"][\"vlist\"][0]\n         latest_video_created = video[\"created\"]\n     msg_list = []\n-    if dynamic_img:\n+    if dynamic_img and _user.dynamic_upload_time < dynamic_upload_time:\n         await BilibiliSub.sub_handle(id_, dynamic_upload_time=dynamic_upload_time)\n         msg_list = [f\"{uname} 发布了动态！📢\\n\", dynamic_img, f\"\\n查看详情：{link}\"]\n     if ("
    }
  ]
}