podverse-parser 5.0.8 → 5.0.9
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/lib/rss/parser.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const parseAllRSSFeeds: () => Promise<
|
|
1
|
+
export declare const parseAllRSSFeeds: () => Promise<void>;
|
|
2
2
|
export declare const getAndParseRSSFeed: (url: string) => Promise<import("podcast-partytime").FeedObject>;
|
|
3
|
-
export declare const parseRSSFeedAndSaveToDatabase: (url: string, podcast_index_id: number) => Promise<
|
|
3
|
+
export declare const parseRSSFeedAndSaveToDatabase: (url: string, podcast_index_id: number) => Promise<void>;
|
|
4
4
|
//# sourceMappingURL=parser.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../src/lib/rss/parser.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../src/lib/rss/parser.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,gBAAgB,qBAM5B,CAAC;AAEF,eAAO,MAAM,kBAAkB,QAAe,MAAM,oDASnD,CAAC;AAQF,eAAO,MAAM,6BAA6B,QAAe,MAAM,oBAAoB,MAAM,kBA+DxF,CAAC"}
|
package/dist/lib/rss/parser.js
CHANGED
|
@@ -90,13 +90,11 @@ const parseRSSFeedAndSaveToDatabase = (url, podcast_index_id) => __awaiter(void
|
|
|
90
90
|
yield feedLogService.update(feed, { last_finished_parse_time: new Date() });
|
|
91
91
|
}
|
|
92
92
|
catch (error) {
|
|
93
|
-
|
|
94
|
-
podverse_helpers_1.logger.error('parseRSSFeedAndSaveToDatabase error:', err.stack);
|
|
95
|
-
throw err;
|
|
93
|
+
(0, podverse_helpers_1.logError)('parseRSSFeedAndSaveToDatabase', error);
|
|
96
94
|
}
|
|
97
95
|
finally {
|
|
98
96
|
yield feedService.update(feed.id, { is_parsing: null });
|
|
99
97
|
}
|
|
100
|
-
return
|
|
98
|
+
return;
|
|
101
99
|
});
|
|
102
100
|
exports.parseRSSFeedAndSaveToDatabase = parseRSSFeedAndSaveToDatabase;
|