Zum Hauptinhalt springen
Y

dsh-anime-schedule

yujiajie01/dsh-anime-schedule

Adds a right-sidebar tab to the DSH web UI with the daily Japanese anime broadcast calendar from Bangumi (api.bgm.tv), grouped Monday through Sunday with today highlighted; hovering a card shows a details popover (cover, score, rank, air date, episode count, tags and synopsis), and clicking opens the title on Bangumi; the host caches the calendar for 10 minutes and subjects for 24 hours on disk so the last successful table still displays offline, and falls back to common local proxy ports when the direct connection fails.

Installation

dsh plugin --profile web add github:yujiajie01/dsh-anime-schedule

README

新番时间表 / Anime Schedule

在 Harness Web UI 的右侧栏显示每日日本新番放送表(数据源 Bangumi)。

功能

  • 右侧栏新页面:在右侧栏「+」添加控件与引导页出现「新番时间表」入口,周一至周日分组显示,今天高亮。
  • 悬停出详细情报:鼠标悬停(或键盘聚焦)番剧卡片约 0.2 秒后弹出详细情报卡:封面、评分、排名、开播日期、话数、标签、制作/声优等 infobox 情报与简介。
  • 点击跳转权威站点:点击番剧卡片在新标签页打开对应的权威动漫介绍网站页面。可在页头下拉中选择站点:
    • Bangumi 番组计划(默认)
    • MyAnimeList
    • AniDB
    • AniList
    • Anime-Planet
  • 缓存:日历 10 分钟、详情 24 小时;数据同时落盘到 ~/.dsh/storages/anime-schedule/,网络中断时仍显示最近一次成功的表(带提示)。
  • 网络:宿主端先直连 api.bgm.tv,失败时自动尝试本机常见代理端口(7897 / 7890 / 10809 / 1080 / 8889),成功端口会被记住。

安装

dsh plugin --profile desktop add https://github.com/yujiajie01/dsh-anime-schedule

(或使用插件管理器的 install_bundle。)安装后重启 Harness 生效。

结构

  • index.js — Host 半:/api/anime-schedule/schedule 与 /api/anime-schedule/subject 两个同源路由(loopback-only),带缓存与代理回退。
  • client.js — Client 半:注册右侧栏 tab 类型(kind anime)、引导入口、页面正文与 tab 标题。
  • locale/*.json — 插件管理器中的标题与描述。
  • icon.svg — 插件图标(原创)。

隐私

浏览器只与本机宿主(同源)通信;对 api.bgm.tv 的请求全部由宿主进程发出,带自定义 User-Agent,不携带任何凭据。

Ähnliche Plugins