@cloud411716/fancy-webnovel 0.1.31 → 0.1.32
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
|
@@ -426,11 +426,6 @@ async function main() {
|
|
|
426
426
|
console.error('=== 浏览器采集指令 END ===\n');
|
|
427
427
|
}
|
|
428
428
|
|
|
429
|
-
// 生成扫榜报告
|
|
430
|
-
const mdFiles = scanFiles.filter(f => f.endsWith('.md') && !f.includes('扫榜报告') && !f.includes('topic_decision'));
|
|
431
|
-
const reportFile = generateReport(platform, length, mdFiles, scanDir);
|
|
432
|
-
appendTopicDecision(platform, length, reportFile, scanDir);
|
|
433
|
-
|
|
434
429
|
// Step 6: 收集原始数据
|
|
435
430
|
const rawData = {};
|
|
436
431
|
for (const f of scanFiles) {
|
|
@@ -449,10 +444,9 @@ async function main() {
|
|
|
449
444
|
length,
|
|
450
445
|
date: today,
|
|
451
446
|
scan_files: scanFiles,
|
|
452
|
-
report_file: reportFile,
|
|
453
447
|
topic_decision: join(scanDir, `topic_decision_${today}.md`),
|
|
454
448
|
raw_data: rawData,
|
|
455
|
-
summary: `${PLATFORM_CN[platform]}(${length})采集完成,共 ${scanFiles.length} 个文件`,
|
|
449
|
+
summary: `${PLATFORM_CN[platform]}(${length === 'long' ? '长篇' : '短篇'})采集完成,共 ${scanFiles.length} 个文件`,
|
|
456
450
|
};
|
|
457
451
|
|
|
458
452
|
console.log(JSON.stringify(receipt));
|