dsh-movie-workbench 1.0.3 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +22 -10
- package/README.zh.md +18 -8
- package/client.js +1036 -83
- package/docs/DETAIL.md +3 -2
- package/docs/DETAIL.zh.md +3 -2
- package/docs/detail.png +0 -0
- package/docs/home.png +0 -0
- package/docs/install.png +0 -0
- package/lib/host.js +463 -2
- package/lib/providers.js +762 -32
- package/locale/en.json +1 -1
- package/locale/zh.json +1 -1
- package/package.json +2 -2
- package/docs/image.png +0 -0
package/README.md
CHANGED
|
@@ -2,18 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
# dsh-movie-workbench
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
search movies and TV series across **TMDB**, **IMDb** and **DouBan** on a single page, and find BT
|
|
7
|
-
resources.
|
|
5
|
+
DSH **Movies workbench** : Search for movies and TV series from **TMDB**, **IMDb** and **Douban** on one page and automatically discover BT resources.
|
|
8
6
|
|
|
9
|
-

|
|
10
|
-
|
|
11
|
-

|
|
7
|
+
|  |  |
|
|
8
|
+
|------|------|
|
|
12
9
|
|
|
13
10
|
## Features
|
|
14
11
|
|
|
15
12
|
- **Film & TV search** — results grouped by channel, with posters, years, ratings and source links.
|
|
16
|
-
- **Trending** — each channel's popular movies and TV series.
|
|
13
|
+
- **Trending** — each channel's popular movies and TV series on the home page; the row length follows the panel width so every channel fills exactly two rows, and it re-requests on resize.
|
|
14
|
+
- **Channel browse** — open any channel for its own page with category tabs (TMDB: This week /
|
|
15
|
+
Movies / TV; IMDb: Featured / Movies / TV; DouBan: Popular / Movies / TV / Movie charts /
|
|
16
|
+
TV charts) and infinite scroll for the next pages.
|
|
17
|
+
- **DouBan charts (榜单)** — DouBan's channel page has two separate chart tabs, 电影榜单 and
|
|
18
|
+
剧集榜单, with collapsible sections. Movie lists group 官方榜单, 年度榜单 (2025–2021,
|
|
19
|
+
high-score and recent-hit variants), 高分经典 and 近期热门 for 27 genres, and 冷门佳作 for
|
|
20
|
+
each genre; TV lists group 官方榜单, 年度榜单 and 高分经典 / 近期热门 for the same genres.
|
|
21
|
+
Generated charts use their first title's poster as the card cover. Open a chart to see the
|
|
22
|
+
ranked titles with the same paged infinite scroll.
|
|
17
23
|
- **BT resources** — search BT resources, sortable by size, seeders or downloads; copy the magnet
|
|
18
24
|
link or open the source page.
|
|
19
25
|
|
|
@@ -24,7 +30,7 @@ resources.
|
|
|
24
30
|
Paste the plugin's GitHub repository URL
|
|
25
31
|
`https://github.com/aidc-lab/dsh-movie-workbench.git` into the input field, as shown below.
|
|
26
32
|
|
|
27
|
-

|
|
28
34
|
|
|
29
35
|
### From the CLI
|
|
30
36
|
|
|
@@ -55,6 +61,9 @@ The Host side (`index.js` + `lib/`) exposes a single prefix route, `/movie-workb
|
|
|
55
61
|
| `GET /status` | whether each channel has credentials |
|
|
56
62
|
| `GET /search?q=&source=&lang=` | dispatch to the selected channels and return normalized results |
|
|
57
63
|
| `GET /trending?source=&lang=&limit=` | recommendation rows, or a longer list for one channel |
|
|
64
|
+
| `GET /browse?source=&category=&page=&cursor=&lang=` | one page (20 items) of a channel browse category; returns `hasMore` and, for IMDb, an opaque `next` cursor for infinite scroll |
|
|
65
|
+
| `GET /charts?source=douban&kind=movie\|tv` | one chart catalog: `movie` (default) has 3 official charts with live metadata, 10 annual charts (高分/热门 for 2025–2021), 27 hidden-gem charts (one per genre) and 54 genre charts (94 total); `tv` has 3 official, 10 annual and 54 genre charts (67 total, no hidden gems) |
|
|
66
|
+
| `GET /chart?source=douban&id=&start=&count=` | one page of a chart's ranked titles; `id` is an official id, `year:<yyyy>:<S or U>`, `hidden:<genre>`, `genre:<genre>:<S or U>`, or the TV forms `tv-year:<yyyy>:<S or U>` / `tv-genre:<genre>:<S or U>` (S = high-score, U = recent hits) |
|
|
58
67
|
| `GET /detail?source=douban&id=` | synopsis and metadata for a DouBan title |
|
|
59
68
|
| `GET /torrents?q=&alt=&source=&limit=` | BT resource search |
|
|
60
69
|
| `GET /image?url=` | proxy posters from allowlisted image hosts |
|
|
@@ -78,9 +87,12 @@ panel (stored only in the local browser). IMDb and DouBan need no key.
|
|
|
78
87
|
## Notes
|
|
79
88
|
|
|
80
89
|
- Requires the DSH Web GUI (it provides `ctx.webServer`) and access to `api.themoviedb.org`,
|
|
81
|
-
`v2.sg.media-imdb.com`, `movie.douban.com`, `bt4gprx.com`,
|
|
82
|
-
hosts.
|
|
90
|
+
`v2.sg.media-imdb.com`, `api.graphql.imdb.com`, `movie.douban.com`, `bt4gprx.com`,
|
|
91
|
+
`bitsearch.to` and the poster image hosts.
|
|
83
92
|
- IMDb search results carry no rating; DouBan recommendations include the public `rate`; TMDB
|
|
84
93
|
provides ratings and vote counts.
|
|
94
|
+
- Channel browse pages return 20 items per page and stop at page 100. IMDb browse pages are
|
|
95
|
+
cursor paged through IMDb's browser GraphQL popularity index, so scrolling keeps loading new
|
|
96
|
+
titles; the home Trending row still uses a curated seed list, which is why it is limited.
|
|
85
97
|
- suggestion, rexxar, BT4G and BitSearch are undocumented endpoints and may change or rate-limit;
|
|
86
98
|
failures are surfaced per channel and do not affect the others.
|
package/README.zh.md
CHANGED
|
@@ -2,17 +2,21 @@
|
|
|
2
2
|
|
|
3
3
|
# dsh-movie-workbench
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
在一个页面里检索 **TMDB**、**IMDb** 和 **豆瓣** 的电影与剧集,并查找 BT 资源。
|
|
5
|
+
DSH **影视工作台**:在一个页面里检索 **TMDB**、**IMDb** 和 **豆瓣** 的电影与剧集,自动发现 BT 资源。
|
|
7
6
|
|
|
8
|
-

|
|
9
|
-
|
|
10
|
-

|
|
7
|
+
|  |  |
|
|
8
|
+
|------|------|
|
|
11
9
|
|
|
12
10
|
## 功能
|
|
13
11
|
|
|
14
12
|
- **影视搜索** — 结果按渠道分组,含海报、年份、评分与来源链接。
|
|
15
|
-
- **热门推荐** —
|
|
13
|
+
- **热门推荐** — 首页展示各渠道热门推荐影视;每行数量随面板宽度自适应,正好铺满两行,窗口尺寸变化时自动重新请求。
|
|
14
|
+
- **渠道浏览** — 点进渠道进入独立页面,按分类标签切换(TMDB:本周趋势 / 电影 / 剧集;
|
|
15
|
+
IMDb:精选作品 / 电影 / 剧集;豆瓣:热门推荐 / 电影 / 剧集 / 电影榜单 / 剧集榜单),下滑自动加载下一页。
|
|
16
|
+
- **豆瓣榜单** — 豆瓣渠道页有「电影榜单」和「剧集榜单」两个标签,分组均可折叠。电影榜单包含
|
|
17
|
+
官方榜单、年度榜单(2025–2021,含高分/热门两档)、高分经典(27 个类型)、近期热门(27 个类型)和
|
|
18
|
+
冷门佳作(27 个类型);剧集榜单包含官方榜单、年度榜单和高分经典 / 近期热门。
|
|
19
|
+
无封面的榜单自动取第一名作品的封面,点开榜单按排名展示影片,同样支持下滑加载更多。
|
|
16
20
|
- **BT 资源** — 查找 BT 资源,可按大小、做种、下载排序;可复制磁力链接或打开来源页。
|
|
17
21
|
|
|
18
22
|
## 安装
|
|
@@ -21,7 +25,7 @@
|
|
|
21
25
|
|
|
22
26
|
直接将插件的GitHub仓库地址 `https://github.com/aidc-lab/dsh-movie-workbench.git` 拷贝到输入框中,如下图。
|
|
23
27
|
|
|
24
|
-

|
|
25
29
|
|
|
26
30
|
### 通过命令行
|
|
27
31
|
|
|
@@ -51,12 +55,16 @@ Host 端(`index.js` + `lib/`)只有一个前缀路由 `/movie-workbench/api`
|
|
|
51
55
|
| `GET /status` | 各渠道是否已配置凭据 |
|
|
52
56
|
| `GET /search?q=&source=&lang=` | 分发到所选渠道并返回归一化结果 |
|
|
53
57
|
| `GET /trending?source=&lang=&limit=` | 推荐行,或单个渠道的更长列表 |
|
|
58
|
+
| `GET /browse?source=&category=&page=&cursor=&lang=` | 渠道浏览分类的一页(20 条),返回 `hasMore` 与 IMDb 的不透明 `next` 游标用于无限加载 |
|
|
59
|
+
| `GET /charts?source=douban&kind=movie\|tv` | 单个榜单目录:`movie`(默认)含 3 个官方榜单(实时元数据)+ 10 个年度榜单(2025–2021 的高分/热门)+ 27 个类型冷门佳作 + 54 个分类题材榜单(共 94 个);`tv` 含 3 个官方 + 10 个年度 + 54 个分类题材榜单(共 67 个,无冷门佳作) |
|
|
60
|
+
| `GET /chart?source=douban&id=&start=&count=` | 某个榜单的一页按排名条目;`id` 为官方榜单 id、`year:<年份>:<S 或 U>`、`hidden:<类型>`、`genre:<类型>:<S 或 U>`,以及剧集形式 `tv-year:<年份>:<S 或 U>` / `tv-genre:<类型>:<S 或 U>`(S 高分经典,U 近期热门) |
|
|
54
61
|
| `GET /detail?source=douban&id=` | 豆瓣条目的简介与元数据 |
|
|
55
62
|
| `GET /torrents?q=&alt=&source=&limit=` | BT 资源搜索 |
|
|
56
63
|
| `GET /image?url=` | 代理白名单图床的海报 |
|
|
57
64
|
|
|
58
65
|
所有上游 HTTP 请求都在 Host 完成,因此页面保持同源,豆瓣的 `Referer` 要求也在服务端
|
|
59
|
-
处理。
|
|
66
|
+
处理。IMDb 浏览页通过 IMDb 的浏览器 GraphQL 接口做游标分页,可以一直下滑加载新条目;
|
|
67
|
+
首页推荐行仍使用固定精选列表,因此数量有限。
|
|
60
68
|
|
|
61
69
|
## 配置
|
|
62
70
|
|
|
@@ -77,5 +85,7 @@ TMDB 需要凭据:可设置 `tmdbApiKey`,或在面板的 Key 控件里粘贴
|
|
|
77
85
|
`api.themoviedb.org`、`v2.sg.media-imdb.com`、`movie.douban.com`、`bt4gprx.com`、
|
|
78
86
|
`bitsearch.to` 及海报图床。
|
|
79
87
|
- IMDb 搜索结果没有评分;豆瓣推荐带公开的 `rate`;TMDB 提供评分与票数。
|
|
88
|
+
- 渠道浏览每页 20 条、最多 10 页;IMDb 浏览页基于精选种子列表经 suggestion API 解析,
|
|
89
|
+
因此一页可能不足 20 条。
|
|
80
90
|
- suggestion、rexxar、BT4G 与 BitSearch 都是未公开接口,可能变更或限流;失败时按渠道
|
|
81
91
|
单独提示,不影响其他渠道。
|