Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

合集的api似乎有些问题 #46

Merged
merged 1 commit into from
Apr 22, 2024
Merged

合集的api似乎有些问题 #46

merged 1 commit into from
Apr 22, 2024

Conversation

yangtfu
Copy link
Collaborator

@yangtfu yangtfu commented Apr 21, 2024

不知道为什么
https://api.bilibili.com/x/polymer/web-space/seasons_archives_list抓的数据是错乱的,改用https://api.bilibili.com/x/series/archives

@CuteReimu CuteReimu added the bug Something isn't working label Apr 21, 2024
@CuteReimu
Copy link
Owner

你这个不是视频合集吧?我测了没有问题。

原接口:(GET) https://api.bilibili.com/x/polymer/web-space/seasons_archives_list?season_id=47217&mid=1415334

点击展开返回结果
{
  "code": 0,
  "message": "0",
  "ttl": 1,
  "data": {
    "aids": [378298808, 463260999, 378495648],
    "archives": [
      {
        "aid": 378298808,
        "bvid": "BV1vf4y1F732",
        "ctime": 1632850690,
        "duration": 296,
        "enable_vt": false,
        "interactive_video": false,
        "pic": "http://i2.hdslb.com/bfs/archive/83343840eb3a071d850c17daa19764453667b05a.png",
        "playback_position": 0,
        "pubdate": 1632850690,
        "stat": {
          "view": 70112,
          "vt": 0
        },
        "state": 0,
        "title": "你不一定知道的空洞骑士冷知识(一)",
        "ugc_pay": 0,
        "vt_display": ""
      },
      {
        "aid": 463260999,
        "bvid": "BV1dL411W7sG",
        "ctime": 1633128246,
        "duration": 379,
        "enable_vt": false,
        "interactive_video": false,
        "pic": "http://i2.hdslb.com/bfs/archive/7f5f331194a769e0545c19dea1b42ca52cf936cc.jpg",
        "playback_position": 0,
        "pubdate": 1633128245,
        "stat": {
          "view": 44703,
          "vt": 0
        },
        "state": 0,
        "title": "你不一定知道的空洞骑士冷知识(二)",
        "ugc_pay": 0,
        "vt_display": ""
      },
      {
        "aid": 378495648,
        "bvid": "BV1vf4y1c7CW",
        "ctime": 1633416744,
        "duration": 398,
        "enable_vt": false,
        "interactive_video": false,
        "pic": "http://i0.hdslb.com/bfs/archive/457abce034d9645c00dbd9bacfdeb0a161f1e525.jpg",
        "playback_position": 0,
        "pubdate": 1633416744,
        "stat": {
          "view": 25088,
          "vt": 0
        },
        "state": 0,
        "title": "你不一定知道的空洞骑士冷知识(三)",
        "ugc_pay": 0,
        "vt_display": ""
      }
    ],
    "meta": {
      "category": 0,
      "cover": "https://archive.biliimg.com/bfs/archive/cc23e27eff4b75252c2b120eabdb033e276ae449.jpg",
      "description": "你不一定知道的空洞骑士冷知识",
      "mid": 1415334,
      "name": "合集·空洞冷知识",
      "ptime": 1633416744,
      "season_id": 47217,
      "total": 3
    },
    "page": {
      "page_num": 1,
      "page_size": 10,
      "total": 3
    }
  }
}

你修改后的接口:(GET) https://api.bilibili.com/x/series/archives?series_id=47217&mid=1415334

点击展开返回结果
{
  "code": 0,
  "message": "0",
  "ttl": 1,
  "data": {
    "aids": [],
    "page": {
      "num": 1,
      "size": 20,
      "total": 0
    },
    "archives": null
  }
}

新接口反而没有结果。

@yangtfu
Copy link
Collaborator Author

yangtfu commented Apr 22, 2024

你这个不是视频合集吧?我测了没有问题。

原接口:(GET) https://api.bilibili.com/x/polymer/web-space/seasons_archives_list?season_id=47217&mid=1415334

点击展开返回结果
你修改后的接口:(GET) https://api.bilibili.com/x/series/archives?series_id=47217&mid=1415334

点击展开返回结果
新接口反而没有结果。

我知道了,好像合集和列表的区别,试下这个链接:
https://space.bilibili.com/397490386/channel/seriesdetail?sid=1203833&ctype=0

Copy link
Owner

@CuteReimu CuteReimu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

那你新增一个视频列表的接口吧,原来那个保留。
名字大概叫GetVideoSeries类似这样的,你自己定吧。

@yangtfu yangtfu enabled auto-merge (squash) April 22, 2024 05:19
@yangtfu
Copy link
Collaborator Author

yangtfu commented Apr 22, 2024

done

那你新增一个视频列表的接口吧,原来那个保留。 名字大概叫GetVideoSeries类似这样的,你自己定吧。

@yangtfu yangtfu merged commit 85cab5e into CuteReimu:master Apr 22, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants