Skip to content

[更新请求] opus 有新的文字类型出现 #1408

@nlsdt

Description

@nlsdt

提交前请确认

  • 我已阅读贡献指南, 已确认文档中相关内容存在错误或不足,且 Issues、Pull Requests 中无相关提交

原文档链接

https://github.com/SocialSisterYi/bilibili-API-collect/blob/master/docs/opus/features.md#module_type_content

更新内容

module_content.paragraphs[] 对象 部分及其他部分需要更新

para_type 出现了一种 =8 的情况,还多了一个level参数

用途和模式暂不清楚

e.g.
https://www.bilibili.com/opus/1116865529061048320
https://www.bilibili.com/opus/1107943267115204612

以下是两个 8 的例子

// 这个是 type 8的两块
// level = 1
{
  "align": 0,
  "format": { "align": 0, "indent": null },
  "heading": {
    "level": 1,
    "nodes": [
      {
        "type": "TEXT_NODE_TYPE_WORD",
        "word": {
          "bg_style": { "color": {} },
          "color": "#ff968d",
          "font_level": "xxLarge",
          "font_size": 24,
          "style": { "bold": true },
          "words": "中乃(美术总监)"
        }
      }
    ]
  },
  "para_type": 8
},
// level = 2
{
  "align": 0,
  "format": { "align": 0, "indent": null },
  "heading": {
    "level": 2,
    "nodes": [
      {
        "type": "TEXT_NODE_TYPE_WORD",
        "word": {
          "bg_style": { "color": {} },
          "color": null,
          "font_level": "xLarge",
          "font_size": 22,
          "style": { "bold": true },
          "words": "英国里维埃拉线:埃克塞特 - 普利茅斯和佩恩顿"
        }
      }
    ]
  },
  "para_type": 8
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions