diff --git a/src/_locales/cmn-CN.yml b/src/_locales/cmn-CN.yml index 29ec705c..f12fa9e9 100644 --- a/src/_locales/cmn-CN.yml +++ b/src/_locales/cmn-CN.yml @@ -6,6 +6,7 @@ common: viewWithoutNum: 次 danmaku: '{count} 弹幕' danmakuWithoutNum: 弹幕 + anime_follow_count: '{count}人关注' year: 年前 month: 个月前 week: 个星期前 @@ -133,7 +134,7 @@ topbar: logo_dropdown: anime: 番剧 movies: 电影 - chinese_anime: 国创 + chinese_anime: 中国动画 tv_shows: 电视剧 variety_shows: 综艺 documentary_films: 纪录片 @@ -211,6 +212,11 @@ home: not_interested_in: 对哪方面不感兴趣? video_removed: 视频已移除 save_to_watch_later: 添加到稍后再看 +ranking: + all: 全部 + chinese_anime_related: 中国动画相关 + original_content: 原创内容 + debut_work: 新人作品 anime: total_episodes: 全 {ep} 话 update_to_n_episodes: 更新至 {ep} 话 diff --git a/src/_locales/cmn-TW.yml b/src/_locales/cmn-TW.yml index 7be4a126..2f95181f 100644 --- a/src/_locales/cmn-TW.yml +++ b/src/_locales/cmn-TW.yml @@ -6,6 +6,7 @@ common: viewWithoutNum: 次 danmaku: '{count} 彈幕' danmakuWithoutNum: 彈幕 + anime_follow_count: '{count}人追蹤' year: 年前 month: 個月前 week: 個禮拜前 @@ -210,6 +211,11 @@ dock: home: not_interested_in: 對哪方面不感興趣? video_removed: 影片已移除 +ranking: + all: 全部 + chinese_anime_related: 中國動畫相關 + original_content: 原創內容 + debut_work: 新人作品 anime: total_episodes: 全 {ep} 話 update_to_n_episodes: 更新至 {ep} 話 diff --git a/src/_locales/en.yml b/src/_locales/en.yml index cd626d91..49a8d939 100644 --- a/src/_locales/en.yml +++ b/src/_locales/en.yml @@ -6,6 +6,7 @@ common: viewWithoutNum: ' views' danmaku: no danmaku | {count} danmaku | {count} danmakus danmakuWithoutNum: ' danmakus' + anime_follow_count: no follow | {count} follow | {count} follows year: year ago | years ago month: month ago | months ago week: week ago | weeks ago @@ -211,6 +212,11 @@ dock: home: not_interested_in: Not interested in... video_removed: Video removed +ranking: + all: All + chinese_anime_related: Chinese Anime-related + original_content: Original Content + debut_work: Debut Work anime: total_episodes: EP {ep} update_to_n_episodes: Update to EP {ep} diff --git a/src/_locales/jyut.yml b/src/_locales/jyut.yml index 0dc91eed..657ccd5f 100644 --- a/src/_locales/jyut.yml +++ b/src/_locales/jyut.yml @@ -6,6 +6,7 @@ common: viewWithoutNum: 次 danmaku: '{count} 彈幕' danmakuWithoutNum: 彈幕 + anime_follow_count: '{count}人追緊' year: 年前 month: 個月前 week: 個禮拜前 @@ -210,6 +211,11 @@ dock: home: not_interested_in: 對邊方面冇癮? video_removed: 經已鏟咗條片 +ranking: + all: 全部 + chinese_anime_related: 中國動畫相關 + original_content: 原創內容 + debut_work: 新人作品 anime: total_episodes: 共 {ep} 集 update_to_n_episodes: 更新到 {ep} 集 diff --git a/src/background/messageListeners/ranking.ts b/src/background/messageListeners/ranking.ts index 2f1e9a5e..a17d68db 100644 --- a/src/background/messageListeners/ranking.ts +++ b/src/background/messageListeners/ranking.ts @@ -3,7 +3,7 @@ import browser from 'webextension-polyfill' function handleMessage(message: any) { // https://github.com/SocialSisterYi/bilibili-API-collect/blob/7873a79022a5606e2391d93b411a05576a0df111/docs/video_ranking/ranking.md#%E8%8E%B7%E5%8F%96%E5%88%86%E5%8C%BA%E8%A7%86%E9%A2%91%E6%8E%92%E8%A1%8C%E6%A6%9C%E5%88%97%E8%A1%A8 if (message.contentScriptQuery === 'getRankingVideos') { - const url = `https://api.bilibili.com/x/web-interface/ranking/v2?rid=${message.rid ?? 0}&type=all` + const url = `https://api.bilibili.com/x/web-interface/ranking/v2?rid=${message.rid ?? 0}&type=${message.type ?? 'all'}` return fetch(url) .then(response => response.json()) .then(data => data) diff --git a/src/components/LongCoverCard/LongCoverCard.vue b/src/components/LongCoverCard/LongCoverCard.vue index ba5ce697..4c3960ee 100644 --- a/src/components/LongCoverCard/LongCoverCard.vue +++ b/src/components/LongCoverCard/LongCoverCard.vue @@ -1,5 +1,6 @@ @@ -18,24 +21,23 @@ defineProps<{