Skip to content

Commit

Permalink
fix(routes/bilibili/user-collection): user new api host (DIYgod#18183)
Browse files Browse the repository at this point in the history
  • Loading branch information
cscnk52 authored Jan 22, 2025
1 parent f8ba9fc commit 35e7b8e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/routes/bilibili/user-collection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export const route: Route = {
supportScihub: false,
},
name: 'UP 主频道的合集',
maintainers: ['shininome'],
maintainers: ['shininome', 'cscnk52'],
handler,
};

Expand All @@ -42,7 +42,7 @@ async function handler(ctx) {

const link = `https://space.bilibili.com/${uid}/channel/collectiondetail?sid=${sid}`;
const [userName, face] = await cache.getUsernameAndFaceFromUID(uid);
const host = `https://api.bilibili.com/x/polymer/space/seasons_archives_list?mid=${uid}&season_id=${sid}&sort_reverse=${sortReverse}&page_num=${page}&page_size=${limit}`;
const host = `https://api.bilibili.com/x/polymer/web-space/seasons_archives_list?mid=${uid}&season_id=${sid}&sort_reverse=${sortReverse}&page_num=${page}&page_size=${limit}`;

const response = await got(host, {
headers: {
Expand Down

0 comments on commit 35e7b8e

Please sign in to comment.