Skip to content

Commit b9f9dba

Browse files
committed
Add EditREADME subscription sync shortcut
1 parent 98a5d94 commit b9f9dba

5 files changed

Lines changed: 53 additions & 1 deletion

File tree

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
secret.json
22
local_secret.json
33
.DS_Store
4-
./README.md
4+
./README.md
5+
garss-studio/.playwright-cli
6+
.playwright-cli

EditREADME.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,7 @@
269269
| R002 | 书伴 | 为静心阅读而生 | {{latest_content}} | [订阅地址](https://feeds.feedburner.com/bookfere) |
270270
| R003 | kindle吧 | 海量书单阅读分享者 | {{latest_content}} | [订阅地址](https://www.kindle8.cc/feed) |
271271
| R004 | 起点中文网 | 限时免费清单 | {{latest_content}} | [订阅地址](http://rsshub:1200/qidian/free) |
272+
| N002 | 豆瓣 - 豆瓣电影分类 | 排序方式可选值如下 近期热门 标记最多 评分最高 最近上映 U T S R | 示例:/douban/movie/classification/R/7.5/Netflix,2020 | 参数:sort: 排序方式,默认为U;score: 最低评分,默认不限制;tags: 分类标签,多个标签之间用英文逗号分隔,常见的标签到豆瓣电影的分类页面查看,支持自定义标签 | 源码:other/classification.ts | {{latest_content}} | [订阅地址](http://rsshub:1200/douban/movie/classification) |
272273
| <h2 id="Telegram优质频道RSS订阅">Telegram优质频道RSS订阅</h2> | | | |
273274
| TG001 | 4K影视屋 | 蓝光无损电影 | {{latest_content}} | [订阅地址](http://rsshub:1200/telegram/channel/dianying4K) |
274275
| TG002 | 编程笑话 | 程序员编程笑话 | {{latest_content}} | [订阅地址](http://rsshub:1200/telegram/channel/programmerjokes) |

garss-studio/storage/subscriptions.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
[
2+
{
3+
"id": "d2ca4a33-6005-4efe-b549-9737d2d76d6d",
4+
"category": "资源类",
5+
"categories": [
6+
"资源类"
7+
],
8+
"name": "豆瓣 - 豆瓣电影分类",
9+
"routePath": "/douban/movie/classification",
10+
"routeTemplate": "",
11+
"description": "排序方式可选值如下 近期热门 标记最多 评分最高 最近上映 U T S R | 示例:/douban/movie/classification/R/7.5/Netflix,2020 | 参数:sort: 排序方式,默认为U;score: 最低评分,默认不限制;tags: 分类标签,多个标签之间用英文逗号分隔,常见的标签到豆瓣电影的分类页面查看,支持自定义标签 | 源码:other/classification.ts",
12+
"enabled": true,
13+
"createdAt": "2026-05-03T07:28:33.654Z",
14+
"updatedAt": "2026-05-03T07:28:33.654Z"
15+
},
216
{
317
"id": "844ee06d-82fd-4098-87ac-56bc116748f5",
418
"category": "未分类",

scripts/README.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# Scripts
2+
3+
## Sync EditREADME From Subscriptions
4+
5+
Run from the repository root:
6+
7+
```bash
8+
node scripts/sync-editreadme-from-subscriptions.mjs
9+
```
10+
11+
This is a shortcut for:
12+
13+
```bash
14+
node garss-studio/scripts/sync-subscriptions-to-editreadme.mjs
15+
```
16+
17+
Behavior:
18+
19+
- Reads `garss-studio/storage/subscriptions.json`
20+
- Skips all subscriptions whose `id` starts with `rsshub-doc-`
21+
- Writes the remaining normal subscriptions into the RSS table in `EditREADME.md`
22+
- Preserves existing table rows when possible
23+
- Converts `https://rsshub.v2fy.com` style RSSHub URLs to `http://rsshub:1200`
24+
25+
Preview without writing:
26+
27+
```bash
28+
node scripts/sync-editreadme-from-subscriptions.mjs --dry-run
29+
```
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/usr/bin/env node
2+
3+
// Root-level shortcut for the canonical GARSS Studio reverse sync.
4+
// It syncs non-rsshub-doc subscriptions from garss-studio/storage/subscriptions.json
5+
// into the RSS table in EditREADME.md.
6+
import "../garss-studio/scripts/sync-subscriptions-to-editreadme.mjs";

0 commit comments

Comments
 (0)