@cloud411716/fancy-webnovel 0.2.13 → 0.2.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cloud411716/fancy-webnovel",
3
- "version": "0.2.13",
3
+ "version": "0.2.15",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "exports": {
@@ -143,24 +143,17 @@ function renderQidianMarkdown(rankLabel, url, books) {
143
143
  `- 来源:${url}`,
144
144
  `- 抓取方式:mobile-ssr`,
145
145
  `- 抓取时间:${now}`,
146
- `- 条目数:${books.length}`,
147
146
  '',
148
147
  '---',
149
148
  '',
150
149
  ];
151
150
 
152
151
  for (const b of books) {
153
- lines.push(`## #${b.rank} ${b.title}`);
154
- const meta = [b.author, b.genre, b.status].filter(Boolean).join(' · ');
155
- if (meta) lines.push(`*${meta}*`);
156
- const req = (v) => (v === undefined || v === null || v === '') ? '[待补]' : String(v);
157
- lines.push(`**字数:** ${req(b.words)}`);
158
- if (b.rankValue) lines.push(`**榜单值:** ${b.rankValue}`);
159
- lines.push(`**总推荐:** ${req(b.totalRecommend)}`);
160
- lines.push(`**签约:** ${req(b.signStatus)}`);
161
- lines.push(`**收费:** ${req(b.vipStatus)}`);
162
- if (b.url) lines.push(`[作品页](${b.url})`);
163
- lines.push('', '---', '');
152
+ lines.push(`书名:${b.title || ''}`);
153
+ lines.push(`题材:${b.genre || ''}`);
154
+ lines.push(`作者:${b.author || ''}`);
155
+ if (b.url) lines.push(`作品页:${b.url}`);
156
+ lines.push('');
164
157
  }
165
158
 
166
159
  return lines.join('\n');
@@ -28,9 +28,7 @@ export const scan = {
28
28
  return (
29
29
  '📋 支持的平台:\n' +
30
30
  PLATFORM_TABLE.map(r => ` ${r[0]}. ${r[3]}(${r[2]})`).join('\n') +
31
- '\n\n- 长篇:关注 追读、月票、订阅 等指标\n' +
32
- '- 短篇:关注 传播、完读率 等指标\n' +
33
- '- 知乎和七猫同时支持长篇和短篇'
31
+ '\n- 知乎和七猫同时支持长篇和短篇'
34
32
  );
35
33
  },
36
34