@cloud411716/fancy-webnovel 0.1.74 → 0.1.75

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.1.74",
3
+ "version": "0.1.75",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "exports": {
@@ -109,10 +109,8 @@ export async function apply(ctx) {
109
109
 
110
110
  notify(session, scan.notify({ type: 'collecting', platform, length }));
111
111
 
112
- // 采集过程中更新 status bar
113
- const tick = setInterval(() => {
114
- session.append('turn/start', { source: 'fancy-scan' });
115
- }, 2000);
112
+ // 开始计时
113
+ session.append('turn/start', { source: 'fancy-scan' });
116
114
 
117
115
  const scriptResult = await spawnScript(
118
116
  'node',
@@ -121,7 +119,8 @@ export async function apply(ctx) {
121
119
  { timeout: 120000 }
122
120
  );
123
121
 
124
- clearInterval(tick);
122
+ session.append('turn/end', { source: 'fancy-scan' });
123
+
125
124
  if (!scriptResult.ok) {
126
125
  const err = (typeof scriptResult.error === 'object' && scriptResult.error !== null)
127
126
  ? (scriptResult.error.message || JSON.stringify(scriptResult.error))