podverse-parser 5.1.6-alpha.2 → 5.1.6-alpha.3
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/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import './module-alias-config';
|
|
2
2
|
export { parseChapters } from './lib/chapters/chapters';
|
|
3
|
-
export { parseRSSFeedAndSaveToDatabase } from './lib/rss/parser';
|
|
3
|
+
export { parseRSSFeedAndSaveToDatabase, ParseRSSFeedAndSaveToDatabase } from './lib/rss/parser';
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,CAAC;AAE/B,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,CAAC;AAE/B,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,6BAA6B,EAAE,6BAA6B,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/lib/rss/parser.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export declare const getAndParseRSSFeed: (url: string) => Promise<import("podcast-partytime").FeedObject>;
|
|
2
|
-
type ParseRSSFeedAndSaveToDatabase = {
|
|
2
|
+
export type ParseRSSFeedAndSaveToDatabase = {
|
|
3
3
|
forceParse?: boolean;
|
|
4
4
|
};
|
|
5
|
-
export declare const parseRSSFeedAndSaveToDatabase: (url: string, podcast_index_id: number, options
|
|
6
|
-
export {};
|
|
5
|
+
export declare const parseRSSFeedAndSaveToDatabase: (url: string, podcast_index_id: number, options: ParseRSSFeedAndSaveToDatabase) => Promise<void>;
|
|
7
6
|
//# sourceMappingURL=parser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../src/lib/rss/parser.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,kBAAkB,GAAU,KAAK,MAAM,oDAUnD,CAAC;AAQF,
|
|
1
|
+
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../src/lib/rss/parser.ts"],"names":[],"mappings":"AAsBA,eAAO,MAAM,kBAAkB,GAAU,KAAK,MAAM,oDAUnD,CAAC;AAQF,MAAM,MAAM,6BAA6B,GAAG;IAC1C,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB,CAAA;AAED,eAAO,MAAM,6BAA6B,GACxC,KAAK,MAAM,EACX,kBAAkB,MAAM,EACxB,SAAS,6BAA6B,kBAwFvC,CAAC"}
|
package/dist/lib/rss/parser.js
CHANGED
|
@@ -39,7 +39,7 @@ const getAndParseRSSFeed = (url) => __awaiter(void 0, void 0, void 0, function*
|
|
|
39
39
|
return parsedFeed;
|
|
40
40
|
});
|
|
41
41
|
exports.getAndParseRSSFeed = getAndParseRSSFeed;
|
|
42
|
-
const parseRSSFeedAndSaveToDatabase = (
|
|
42
|
+
const parseRSSFeedAndSaveToDatabase = (url, podcast_index_id, options) => __awaiter(void 0, void 0, void 0, function* () {
|
|
43
43
|
const feedService = new podverse_orm_1.FeedService();
|
|
44
44
|
let feed = null;
|
|
45
45
|
let channel = null;
|
|
@@ -54,7 +54,7 @@ const handleRemoteItemsFeedParsing = (feedGuidsToParse) => __awaiter(void 0, voi
|
|
|
54
54
|
if (!feed) {
|
|
55
55
|
yield handleRequestDelay(piFeedData.url);
|
|
56
56
|
loggerService_1.loggerService.info(`handleRemoteItemsFeedParsing: ${piFeedData.url} ${piFeedData.id}`);
|
|
57
|
-
yield (0, parser_1.parseRSSFeedAndSaveToDatabase)(piFeedData.url, piFeedData.id);
|
|
57
|
+
yield (0, parser_1.parseRSSFeedAndSaveToDatabase)(piFeedData.url, piFeedData.id, { forceParse: false });
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "podverse-parser",
|
|
3
|
-
"version": "5.1.6-alpha.
|
|
3
|
+
"version": "5.1.6-alpha.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"module-alias": "^2.2.3",
|
|
20
20
|
"podcast-partytime": "^4.9.1",
|
|
21
|
-
"podverse-external-services": "^5.1.6-alpha.
|
|
22
|
-
"podverse-helpers": "^5.1.6-alpha.
|
|
23
|
-
"podverse-orm": "^5.1.6-alpha.
|
|
21
|
+
"podverse-external-services": "^5.1.6-alpha.3",
|
|
22
|
+
"podverse-helpers": "^5.1.6-alpha.1",
|
|
23
|
+
"podverse-orm": "^5.1.6-alpha.3"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@eslint/config-array": "^0.21.0",
|