ns-rss-spider 1.0.4 → 1.0.6
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/dist/cjs/parse.js
CHANGED
|
@@ -81,7 +81,7 @@ async function parseRss(name, feed, options) {
|
|
|
81
81
|
console.log(import_zx.chalk.green(`正在获取缩略图数据`));
|
|
82
82
|
const thumbKv = await (strategy == null ? void 0 : strategy.getThumbs(originRss));
|
|
83
83
|
if (thumbKv && Object.keys(thumbKv).length) {
|
|
84
|
-
console.log(import_zx.chalk.green(`正在更新缩略图`));
|
|
84
|
+
console.log(import_zx.chalk.green(`正在更新缩略图`), Object.keys(thumbKv).length);
|
|
85
85
|
thumbs = thumbKv;
|
|
86
86
|
contents.forEach((content) => {
|
|
87
87
|
if (thumbKv[content.guid]) {
|
|
@@ -59,7 +59,7 @@ var cnbeta = {
|
|
|
59
59
|
},
|
|
60
60
|
ignoreProbeImage: true,
|
|
61
61
|
getThumbs: async (items) => {
|
|
62
|
-
const res = await import_axios.default.get("
|
|
62
|
+
const res = await import_axios.default.get("http://m.cnbeta.com.tw/", {
|
|
63
63
|
responseType: "text",
|
|
64
64
|
headers: {
|
|
65
65
|
"User-Agent": import_constants.iosUA
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __export = (target, all) => {
|
|
6
|
+
for (var name in all)
|
|
7
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
+
};
|
|
9
|
+
var __copyProps = (to, from, except, desc) => {
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (let key of __getOwnPropNames(from))
|
|
12
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
+
}
|
|
15
|
+
return to;
|
|
16
|
+
};
|
|
17
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
|
+
|
|
19
|
+
// src/parsers/reactstatus.ts
|
|
20
|
+
var reactstatus_exports = {};
|
|
21
|
+
__export(reactstatus_exports, {
|
|
22
|
+
reactstatus: () => reactstatus
|
|
23
|
+
});
|
|
24
|
+
module.exports = __toCommonJS(reactstatus_exports);
|
|
25
|
+
var reactstatus = {
|
|
26
|
+
parse: true
|
|
27
|
+
};
|
|
28
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
29
|
+
0 && (module.exports = {
|
|
30
|
+
reactstatus
|
|
31
|
+
});
|