podverse-parser 5.1.0-alpha.8 → 5.1.3-alpha.0

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.
Files changed (84) hide show
  1. package/dist/config/index.d.ts +9 -2
  2. package/dist/config/index.d.ts.map +1 -1
  3. package/dist/config/index.js +9 -2
  4. package/dist/factories/firebaseAccessTokenService.d.ts +3 -0
  5. package/dist/factories/firebaseAccessTokenService.d.ts.map +1 -0
  6. package/dist/factories/firebaseAccessTokenService.js +9 -0
  7. package/dist/factories/loggerService.d.ts +3 -0
  8. package/dist/factories/loggerService.d.ts.map +1 -0
  9. package/dist/factories/loggerService.js +9 -0
  10. package/dist/factories/notificationsService.d.ts +3 -0
  11. package/dist/factories/notificationsService.d.ts.map +1 -0
  12. package/dist/factories/notificationsService.js +13 -0
  13. package/dist/factories/podcastIndex.d.ts.map +1 -1
  14. package/dist/factories/podcastIndex.js +9 -5
  15. package/dist/factories/timerManager.d.ts +3 -0
  16. package/dist/factories/timerManager.d.ts.map +1 -0
  17. package/dist/factories/timerManager.js +7 -0
  18. package/dist/lib/_request.d.ts +9 -0
  19. package/dist/lib/_request.d.ts.map +1 -0
  20. package/dist/lib/_request.js +19 -0
  21. package/dist/lib/chapters/chapters.d.ts.map +1 -1
  22. package/dist/lib/chapters/chapters.js +26 -13
  23. package/dist/lib/compat/chapters/chapters.d.ts.map +1 -1
  24. package/dist/lib/compat/chapters/chapters.js +4 -1
  25. package/dist/lib/compat/partytime/channel.d.ts +2 -2
  26. package/dist/lib/compat/partytime/channel.d.ts.map +1 -1
  27. package/dist/lib/compat/partytime/channel.js +11 -7
  28. package/dist/lib/compat/partytime/item.js +1 -1
  29. package/dist/lib/rss/channel/channel.d.ts.map +1 -1
  30. package/dist/lib/rss/channel/channel.js +4 -5
  31. package/dist/lib/rss/channel/channelAbout.d.ts.map +1 -1
  32. package/dist/lib/rss/channel/channelAbout.js +3 -3
  33. package/dist/lib/rss/channel/channelCategory.d.ts.map +1 -1
  34. package/dist/lib/rss/channel/channelCategory.js +3 -3
  35. package/dist/lib/rss/channel/channelChat.d.ts.map +1 -1
  36. package/dist/lib/rss/channel/channelChat.js +3 -3
  37. package/dist/lib/rss/channel/channelDescription.d.ts.map +1 -1
  38. package/dist/lib/rss/channel/channelDescription.js +3 -3
  39. package/dist/lib/rss/channel/channelFunding.d.ts.map +1 -1
  40. package/dist/lib/rss/channel/channelFunding.js +3 -3
  41. package/dist/lib/rss/channel/channelImage.d.ts.map +1 -1
  42. package/dist/lib/rss/channel/channelImage.js +3 -3
  43. package/dist/lib/rss/channel/channelLicense.d.ts.map +1 -1
  44. package/dist/lib/rss/channel/channelLicense.js +3 -3
  45. package/dist/lib/rss/channel/channelLocation.d.ts.map +1 -1
  46. package/dist/lib/rss/channel/channelLocation.js +3 -3
  47. package/dist/lib/rss/channel/channelPerson.d.ts.map +1 -1
  48. package/dist/lib/rss/channel/channelPerson.js +3 -3
  49. package/dist/lib/rss/channel/channelPodroll.d.ts.map +1 -1
  50. package/dist/lib/rss/channel/channelPodroll.js +3 -3
  51. package/dist/lib/rss/channel/channelPublisher.d.ts.map +1 -1
  52. package/dist/lib/rss/channel/channelPublisher.js +3 -3
  53. package/dist/lib/rss/channel/channelRemoteItem.d.ts.map +1 -1
  54. package/dist/lib/rss/channel/channelRemoteItem.js +3 -3
  55. package/dist/lib/rss/channel/channelSeason.d.ts.map +1 -1
  56. package/dist/lib/rss/channel/channelSeason.js +3 -3
  57. package/dist/lib/rss/channel/channelSocialInteract.d.ts.map +1 -1
  58. package/dist/lib/rss/channel/channelSocialInteract.js +3 -3
  59. package/dist/lib/rss/channel/channelTrailer.d.ts.map +1 -1
  60. package/dist/lib/rss/channel/channelTrailer.js +3 -3
  61. package/dist/lib/rss/channel/channelTxt.d.ts.map +1 -1
  62. package/dist/lib/rss/channel/channelTxt.js +3 -3
  63. package/dist/lib/rss/channel/channelValue.d.ts.map +1 -1
  64. package/dist/lib/rss/channel/channelValue.js +3 -3
  65. package/dist/lib/rss/feed/feed.d.ts +5 -1
  66. package/dist/lib/rss/feed/feed.d.ts.map +1 -1
  67. package/dist/lib/rss/feed/feed.js +15 -11
  68. package/dist/lib/rss/hash/parsedFeed.d.ts.map +1 -1
  69. package/dist/lib/rss/hash/parsedFeed.js +2 -2
  70. package/dist/lib/rss/hash/parsedItemChapter.d.ts +3 -0
  71. package/dist/lib/rss/hash/parsedItemChapter.d.ts.map +1 -0
  72. package/dist/lib/rss/hash/parsedItemChapter.js +29 -0
  73. package/dist/lib/rss/item/item.d.ts.map +1 -1
  74. package/dist/lib/rss/item/item.js +45 -44
  75. package/dist/lib/rss/item/itemValue.d.ts.map +1 -1
  76. package/dist/lib/rss/item/itemValue.js +2 -1
  77. package/dist/lib/rss/liveItem/liveItem.d.ts.map +1 -1
  78. package/dist/lib/rss/liveItem/liveItem.js +14 -9
  79. package/dist/lib/rss/parser.d.ts +5 -1
  80. package/dist/lib/rss/parser.d.ts.map +1 -1
  81. package/dist/lib/rss/parser.js +26 -25
  82. package/dist/lib/rss/remoteItemParser.d.ts.map +1 -1
  83. package/dist/lib/rss/remoteItemParser.js +2 -1
  84. package/package.json +13 -13
@@ -1,7 +1,14 @@
1
1
  export declare const config: {
2
- nodeEnv: string;
3
- shouldLogTimer: boolean;
4
2
  userAgent: string;
3
+ log: {
4
+ level: string;
5
+ dir: string;
6
+ timer: boolean;
7
+ };
8
+ firebase: {
9
+ projectId: string;
10
+ authJsonPath: string;
11
+ };
5
12
  podcastIndex: {
6
13
  authKey: string;
7
14
  baseUrl: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;CASlB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;CAgBlB,CAAC"}
@@ -2,9 +2,16 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.config = void 0;
4
4
  exports.config = {
5
- nodeEnv: process.env.NODE_ENV || 'development',
6
- shouldLogTimer: process.env.LOG_TIMER === 'true',
7
5
  userAgent: process.env.USER_AGENT || '',
6
+ log: {
7
+ level: process.env.LOG_LEVEL || 'info',
8
+ dir: process.env.LOG_DIR || 'logs',
9
+ timer: process.env.LOG_TIMER === 'true',
10
+ },
11
+ firebase: {
12
+ projectId: process.env.FIREBASE_PROJECT_ID || '',
13
+ authJsonPath: process.env.FIREBASE_PATH_TO_AUTH_JSON || '',
14
+ },
8
15
  podcastIndex: {
9
16
  authKey: process.env.PODCAST_INDEX_AUTH_KEY || '',
10
17
  baseUrl: process.env.PODCAST_INDEX_BASE_URL || '',
@@ -0,0 +1,3 @@
1
+ import { FirebaseAccessTokenService } from 'podverse-external-services';
2
+ export declare const firebaseAccessTokenServiceFactory: () => FirebaseAccessTokenService;
3
+ //# sourceMappingURL=firebaseAccessTokenService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"firebaseAccessTokenService.d.ts","sourceRoot":"","sources":["../../src/factories/firebaseAccessTokenService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,0BAA0B,EAAE,MAAM,4BAA4B,CAAC;AAGxE,eAAO,MAAM,iCAAiC,kCAE5C,CAAC"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.firebaseAccessTokenServiceFactory = void 0;
4
+ const podverse_external_services_1 = require("podverse-external-services");
5
+ const config_1 = require("../config");
6
+ const firebaseAccessTokenServiceFactory = () => new podverse_external_services_1.FirebaseAccessTokenService({
7
+ keyFilePath: config_1.config.firebase.authJsonPath
8
+ });
9
+ exports.firebaseAccessTokenServiceFactory = firebaseAccessTokenServiceFactory;
@@ -0,0 +1,3 @@
1
+ import { LoggerService } from 'podverse-helpers/dist/lib/backend/logger';
2
+ export declare const loggerService: LoggerService;
3
+ //# sourceMappingURL=loggerService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loggerService.d.ts","sourceRoot":"","sources":["../../src/factories/loggerService.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAGzE,eAAO,MAAM,aAAa,eAGxB,CAAC"}
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.loggerService = void 0;
4
+ const logger_1 = require("podverse-helpers/dist/lib/backend/logger");
5
+ const config_1 = require("../config");
6
+ exports.loggerService = new logger_1.LoggerService({
7
+ logDir: config_1.config.log.dir,
8
+ logLevel: config_1.config.log.level,
9
+ });
@@ -0,0 +1,3 @@
1
+ import { NotificationsService } from 'podverse-external-services';
2
+ export declare const NotificationsServiceFactory: (googleAuthToken: string) => NotificationsService;
3
+ //# sourceMappingURL=notificationsService.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notificationsService.d.ts","sourceRoot":"","sources":["../../src/factories/notificationsService.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAIlE,eAAO,MAAM,2BAA2B,GAAI,iBAAiB,MAAM,yBAKjE,CAAC"}
@@ -0,0 +1,13 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.NotificationsServiceFactory = void 0;
4
+ const podverse_external_services_1 = require("podverse-external-services");
5
+ const loggerService_1 = require("./loggerService");
6
+ const config_1 = require("../config");
7
+ const NotificationsServiceFactory = (googleAuthToken) => new podverse_external_services_1.NotificationsService({
8
+ userAgent: config_1.config.userAgent,
9
+ googleAuthToken,
10
+ firebaseProjectId: config_1.config.firebase.projectId,
11
+ loggerService: loggerService_1.loggerService
12
+ });
13
+ exports.NotificationsServiceFactory = NotificationsServiceFactory;
@@ -1 +1 @@
1
- {"version":3,"file":"podcastIndex.d.ts","sourceRoot":"","sources":["../../src/factories/podcastIndex.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAOjE,eAAO,MAAM,mBAAmB,qBAA2D,CAAC"}
1
+ {"version":3,"file":"podcastIndex.d.ts","sourceRoot":"","sources":["../../src/factories/podcastIndex.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AAIjE,eAAO,MAAM,mBAAmB,qBAM9B,CAAC"}
@@ -2,8 +2,12 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.podcastIndexService = void 0;
4
4
  const podverse_external_services_1 = require("podverse-external-services");
5
- const config_1 = require("@parser/config");
6
- const authKey = config_1.config.podcastIndex.authKey || '';
7
- const baseUrl = config_1.config.podcastIndex.baseUrl || '';
8
- const secretKey = config_1.config.podcastIndex.secretKey || '';
9
- exports.podcastIndexService = new podverse_external_services_1.PodcastIndexService({ authKey, baseUrl, secretKey });
5
+ const loggerService_1 = require("./loggerService");
6
+ const config_1 = require("../config");
7
+ exports.podcastIndexService = new podverse_external_services_1.PodcastIndexService({
8
+ userAgent: config_1.config.userAgent,
9
+ authKey: config_1.config.podcastIndex.authKey,
10
+ baseUrl: config_1.config.podcastIndex.baseUrl,
11
+ secretKey: config_1.config.podcastIndex.secretKey,
12
+ loggerService: loggerService_1.loggerService
13
+ });
@@ -0,0 +1,3 @@
1
+ import { TimerManager } from 'podverse-helpers/dist/lib/backend/logTimer';
2
+ export declare const timerManager: TimerManager;
3
+ //# sourceMappingURL=timerManager.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"timerManager.d.ts","sourceRoot":"","sources":["../../src/factories/timerManager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,4CAA4C,CAAC;AAI1E,eAAO,MAAM,YAAY,cAAoD,CAAC"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.timerManager = void 0;
4
+ const logTimer_1 = require("podverse-helpers/dist/lib/backend/logTimer");
5
+ const loggerService_1 = require("./loggerService");
6
+ const config_1 = require("../config");
7
+ exports.timerManager = new logTimer_1.TimerManager(config_1.config.log.timer, loggerService_1.loggerService);
@@ -0,0 +1,9 @@
1
+ import { AxiosRequestConfig } from 'podverse-helpers';
2
+ export declare const _request: <T>(url: string, requestConfig?: AxiosRequestConfig, abort?: {
3
+ controller: AbortController;
4
+ timeoutMs: number;
5
+ }) => Promise<{
6
+ status: number;
7
+ data: T;
8
+ }>;
9
+ //# sourceMappingURL=_request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_request.d.ts","sourceRoot":"","sources":["../../src/lib/_request.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAW,MAAM,kBAAkB,CAAC;AAG/D,eAAO,MAAM,QAAQ,GAAU,CAAC,EAC9B,KAAK,MAAM,EACX,gBAAgB,kBAAkB,EAClC,QAAQ;IACN,UAAU,EAAE,eAAe,CAAC;IAC5B,SAAS,EAAE,MAAM,CAAC;CACnB,KACA,OAAO,CAAC;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,CAAC,CAAA;CAAE,CAMrC,CAAC"}
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports._request = void 0;
13
+ const podverse_helpers_1 = require("podverse-helpers");
14
+ const config_1 = require("../config");
15
+ const _request = (url, requestConfig, abort) => __awaiter(void 0, void 0, void 0, function* () {
16
+ const headers = Object.assign(Object.assign({}, requestConfig === null || requestConfig === void 0 ? void 0 : requestConfig.headers), { 'User-Agent': config_1.config.userAgent });
17
+ return (0, podverse_helpers_1.request)(url, Object.assign(Object.assign({}, requestConfig), { headers }), abort);
18
+ });
19
+ exports._request = _request;
@@ -1 +1 @@
1
- {"version":3,"file":"chapters.d.ts","sourceRoot":"","sources":["../../../src/lib/chapters/chapters.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAoE,MAAM,cAAc,CAAC;AA2BtG,eAAO,MAAM,aAAa,GAAU,MAAM,IAAI,KAAG,OAAO,CAAC,IAAI,CAyB5D,CAAC"}
1
+ {"version":3,"file":"chapters.d.ts","sourceRoot":"","sources":["../../../src/lib/chapters/chapters.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAoE,MAAM,cAAc,CAAC;AAoCtG,eAAO,MAAM,aAAa,GAAU,MAAM,IAAI,KAAG,OAAO,CAAC,IAAI,CA6B5D,CAAC"}
@@ -13,15 +13,24 @@ exports.parseChapters = void 0;
13
13
  const podverse_helpers_1 = require("podverse-helpers");
14
14
  const podverse_orm_1 = require("podverse-orm");
15
15
  const chapters_1 = require("@parser/lib/compat/chapters/chapters");
16
+ const _request_1 = require("../_request");
16
17
  const getParsedChapters = (item_chapters_feed) => __awaiter(void 0, void 0, void 0, function* () {
17
18
  const itemChaptersFeedLogService = new podverse_orm_1.ItemChaptersFeedLogService();
18
19
  try {
19
- const response = yield (0, podverse_helpers_1.request)(item_chapters_feed.url);
20
- yield itemChaptersFeedLogService.update(item_chapters_feed, {
21
- last_http_status: 200,
22
- last_good_http_status_time: new Date()
23
- });
24
- return (0, chapters_1.compatParsedChapters)(response.chapters);
20
+ const response = yield (0, _request_1._request)(item_chapters_feed.url);
21
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
22
+ const data = response.data;
23
+ if (data === null || data === void 0 ? void 0 : data.chapters) {
24
+ const chapters = data.chapters;
25
+ yield itemChaptersFeedLogService.update(item_chapters_feed, {
26
+ last_http_status: 200,
27
+ last_good_http_status_time: new Date()
28
+ });
29
+ return (0, chapters_1.compatParsedChapters)(chapters);
30
+ }
31
+ else {
32
+ throw new Error('No chapters found in feed');
33
+ }
25
34
  }
26
35
  catch (error) {
27
36
  // TODO: how to handle errors?
@@ -44,15 +53,19 @@ const parseChapters = (item) => __awaiter(void 0, void 0, void 0, function* () {
44
53
  }
45
54
  const parsedChapters = yield getParsedChapters(item_chapters_feed);
46
55
  const itemChapterService = new podverse_orm_1.ItemChapterService();
47
- const existingChapters = yield itemChapterService.getAll(item_chapters_feed, { select: ['id'] });
48
- const existingChaptersIds = existingChapters.map(item_chapter => item_chapter.id);
49
- const updatedChaptersIds = [];
56
+ const existingChapters = yield itemChapterService.getAll(item_chapters_feed, { select: ['id', 'data_hash'] });
57
+ const existingChaptersDataHashes = existingChapters.map(item_chapter => item_chapter.data_hash);
58
+ const updatedChaptersDataHashes = [];
50
59
  for (const parsedChapter of parsedChapters) {
51
- yield itemChapterService.update(item_chapters_feed, parsedChapter);
52
- updatedChaptersIds.push(item_chapters_feed.id);
60
+ updatedChaptersDataHashes.push(parsedChapter.data_hash);
61
+ if (!existingChaptersDataHashes.includes(parsedChapter.data_hash)) {
62
+ yield itemChapterService.update(item_chapters_feed, parsedChapter);
63
+ }
64
+ }
65
+ const dataHashesToDelete = existingChaptersDataHashes.filter(hash => !updatedChaptersDataHashes.includes(hash));
66
+ if (dataHashesToDelete.length > 0) {
67
+ yield itemChapterService.deleteManyByDataHash(item_chapters_feed, dataHashesToDelete);
53
68
  }
54
- const itemChapterIdsToDelete = existingChaptersIds.filter(id => !updatedChaptersIds.includes(id));
55
- yield itemChapterService.deleteMany(itemChapterIdsToDelete);
56
69
  const itemChaptersFeedLogService = new podverse_orm_1.ItemChaptersFeedLogService();
57
70
  yield itemChaptersFeedLogService.update(item_chapters_feed, { last_finished_parse_time: new Date() });
58
71
  });
@@ -1 +1 @@
1
- {"version":3,"file":"chapters.d.ts","sourceRoot":"","sources":["../../../../src/lib/compat/chapters/chapters.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,MAAM,SAAS,GAAG;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,GAAG,EAAE,OAAO,CAAA;CACb,CAAA;AAED,eAAO,MAAM,oBAAoB,GAAI,UAAU,SAAS,EAAE,KAAG,cAAc,EAW1E,CAAC"}
1
+ {"version":3,"file":"chapters.d.ts","sourceRoot":"","sources":["../../../../src/lib/compat/chapters/chapters.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE9C,MAAM,MAAM,SAAS,GAAG;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;IACpB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAA;IAClB,GAAG,EAAE,OAAO,CAAA;CACb,CAAA;AAED,eAAO,MAAM,oBAAoB,GAAI,UAAU,SAAS,EAAE,KAAG,cAAc,EAa1E,CAAC"}
@@ -1,16 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.compatParsedChapters = void 0;
4
+ const parsedItemChapter_1 = require("@parser/lib/rss/hash/parsedItemChapter");
4
5
  const podverse_helpers_1 = require("podverse-helpers");
5
6
  const compatParsedChapters = (chapters) => {
6
7
  return chapters.map(chapter => {
8
+ const data_hash = (0, parsedItemChapter_1.getPIChapterMd5Hash)(chapter);
7
9
  return {
8
10
  start_time: chapter.startTime,
9
11
  end_time: chapter.endTime || null,
10
12
  title: chapter.title || null,
11
13
  img: (0, podverse_helpers_1.isValidHttpUrl)(chapter.img) && chapter.img || null,
12
14
  web_url: (0, podverse_helpers_1.isValidHttpUrl)(chapter.url) && chapter.url || null,
13
- table_of_contents: chapter.toc || true
15
+ table_of_contents: chapter.toc === false ? false : true,
16
+ data_hash
14
17
  };
15
18
  });
16
19
  };
@@ -3,7 +3,7 @@ export declare const compatChannelDto: (parsedFeed: FeedObject) => {
3
3
  podcast_guid: string | null;
4
4
  title: string | null;
5
5
  sortable_title: string | null;
6
- medium: import("podverse-helpers").MediumEnum | null;
6
+ medium_id: import("podverse-helpers").MediumEnum;
7
7
  };
8
8
  export declare const compatChannelAboutDto: (parsedFeed: FeedObject) => {
9
9
  author: string | null;
@@ -12,7 +12,7 @@ export declare const compatChannelAboutDto: (parsedFeed: FeedObject) => {
12
12
  website_link_url: string | null;
13
13
  itunes_type: import("podverse-orm").ChannelItunesTypeItunesTypeEnum;
14
14
  episode_count: number;
15
- last_pub_date: Date;
15
+ last_pub_date: Date | null;
16
16
  };
17
17
  export declare const compatChannelCategoryDtos: (parsedFeed: FeedObject) => {
18
18
  category_id: import("podverse-helpers").CategoryEnum;
@@ -1 +1 @@
1
- {"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../../../src/lib/compat/partytime/channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAgB,MAAM,mBAAmB,CAAC;AAO7D,eAAO,MAAM,gBAAgB,GAAI,YAAY,UAAU;;;;;CAKrD,CAAC;AAEH,eAAO,MAAM,qBAAqB,GAAI,YAAY,UAAU;;;;;;;;CAmB1D,CAAC;AAEH,eAAO,MAAM,yBAAyB,GAAI,YAAY,UAAU;;GAU/D,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,YAAY,UAAU;;;;;QAU1D,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,YAAY,UAAU;;QAOjE,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,YAAY,UAAU;;;GAe9D,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,YAAY,UAAU;;;;;;IA8B5D,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,YAAY,UAAU;;;QAQ7D,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,YAAY,UAAU;;;;QAU9D,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,YAAY,UAAU;;;;;;GAkB7D,CAAC;AAEF,eAAO,MAAM,kCAAkC,GAAI,YAAY,UAAU;;;;;GAgBxE,CAAC;AAEF,eAAO,MAAM,oCAAoC,GAAI,YAAY,UAAU;;;;;GAa1E,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,YAAY,UAAU;;;;;GAiBjE,CAAC;AAEF,eAAO,MAAM,+BAA+B,GAAI,YAAY,UAAU;;;;;;GAiBrE,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,YAAY,UAAU;;;GA0B7D,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,YAAY,UAAU;;;;;;;GAkB9D,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,YAAY,UAAU;;;GAY1D,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,YAAY,UAAU;;;;;;;;;;;;;;;GAiB5D,CAAC"}
1
+ {"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../../../src/lib/compat/partytime/channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAgB,MAAM,mBAAmB,CAAC;AAO7D,eAAO,MAAM,gBAAgB,GAAI,YAAY,UAAU;;;;;CAKrD,CAAC;AAEH,eAAO,MAAM,qBAAqB,GAAI,YAAY,UAAU;;;;;;;;CAqB1D,CAAC;AAEH,eAAO,MAAM,yBAAyB,GAAI,YAAY,UAAU;;GAU/D,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,YAAY,UAAU;;;;;QAU1D,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,YAAY,UAAU;;QAOjE,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,YAAY,UAAU;;;GAe9D,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,YAAY,UAAU;;;;;;IA8B5D,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,YAAY,UAAU;;;QAQ7D,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,YAAY,UAAU;;;;QAU9D,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,YAAY,UAAU;;;;;;GAkB7D,CAAC;AAEF,eAAO,MAAM,kCAAkC,GAAI,YAAY,UAAU;;;;;GAgBxE,CAAC;AAEF,eAAO,MAAM,oCAAoC,GAAI,YAAY,UAAU;;;;;GAa1E,CAAC;AAEF,eAAO,MAAM,2BAA2B,GAAI,YAAY,UAAU;;;;;GAiBjE,CAAC;AAEF,eAAO,MAAM,+BAA+B,GAAI,YAAY,UAAU;;;;;;GAiBrE,CAAC;AAEF,eAAO,MAAM,uBAAuB,GAAI,YAAY,UAAU;;;GA0B7D,CAAC;AAEF,eAAO,MAAM,wBAAwB,GAAI,YAAY,UAAU;;;;;;;GAkB9D,CAAC;AAEF,eAAO,MAAM,oBAAoB,GAAI,YAAY,UAAU;;;GAY1D,CAAC;AAEF,eAAO,MAAM,sBAAsB,GAAI,YAAY,UAAU;;;;;;;;;;;;;;;GAiB5D,CAAC"}
@@ -11,12 +11,12 @@ const compatChannelDto = (parsedFeed) => {
11
11
  podcast_guid: ((_a = parsedFeed.guid) === null || _a === void 0 ? void 0 : _a.slice(0, podverse_helpers_1.DATABASE_CONSTANTS.varchar_guid)) || null,
12
12
  title: ((_b = parsedFeed.title) === null || _b === void 0 ? void 0 : _b.slice(0, podverse_helpers_1.DATABASE_CONSTANTS.varchar_normal)) || null,
13
13
  sortable_title: ((_c = (0, podverse_helpers_1.createSortableTitle)(parsedFeed.title)) === null || _c === void 0 ? void 0 : _c.slice(0, podverse_helpers_1.DATABASE_CONSTANTS.varchar_short)) || null,
14
- medium: (0, podverse_helpers_1.getMediumEnumValue)((_d = parsedFeed.medium) !== null && _d !== void 0 ? _d : podcast_partytime_1.Phase4Medium.Podcast)
14
+ medium_id: (0, podverse_helpers_1.getMediumEnumValue)((_d = parsedFeed.medium) !== null && _d !== void 0 ? _d : podcast_partytime_1.Phase4Medium.Podcast)
15
15
  });
16
16
  };
17
17
  exports.compatChannelDto = compatChannelDto;
18
18
  const compatChannelAboutDto = (parsedFeed) => {
19
- var _a, _b, _c, _d, _e, _f;
19
+ var _a, _b, _c, _d, _e;
20
20
  return ({
21
21
  author: ((_b = ((_a = (Array.isArray(parsedFeed.author)
22
22
  ? parsedFeed.author
@@ -27,13 +27,17 @@ const compatChannelAboutDto = (parsedFeed) => {
27
27
  website_link_url: (0, podverse_helpers_1.isValidHttpUrl)(parsedFeed.link) && ((_d = parsedFeed.link) === null || _d === void 0 ? void 0 : _d.slice(0, podverse_helpers_1.DATABASE_CONSTANTS.varchar_url)) || null,
28
28
  itunes_type: (0, podverse_orm_1.getChannelItunesTypeItunesTypeEnumValue)(parsedFeed.itunesType || 'episodic'),
29
29
  episode_count: ((_e = parsedFeed.items) === null || _e === void 0 ? void 0 : _e.length) || 0,
30
- last_pub_date: ((_f = parsedFeed.items) === null || _f === void 0 ? void 0 : _f.reduce((latest, item) => {
31
- if (item.pubDate) {
30
+ last_pub_date: (() => {
31
+ var _a;
32
+ const itemsWithPubDate = ((_a = parsedFeed.items) === null || _a === void 0 ? void 0 : _a.filter(item => !!item.pubDate)) || [];
33
+ if (itemsWithPubDate.length === 0)
34
+ return null;
35
+ const latestDate = itemsWithPubDate.reduce((latest, item) => {
32
36
  const itemDate = new Date(item.pubDate);
33
37
  return itemDate > latest ? itemDate : latest;
34
- }
35
- return latest;
36
- }, new Date(0))) || null
38
+ }, new Date(itemsWithPubDate[0].pubDate));
39
+ return isNaN(latestDate.getTime()) ? null : latestDate;
40
+ })()
37
41
  });
38
42
  };
39
43
  exports.compatChannelAboutDto = compatChannelAboutDto;
@@ -39,7 +39,7 @@ const compatItemChaptersFeedDto = (parsedItem) => {
39
39
  exports.compatItemChaptersFeedDto = compatItemChaptersFeedDto;
40
40
  const compatItemChatDto = (parsedItem) => {
41
41
  var _a, _b;
42
- if (!parsedItem.chat) {
42
+ if (!parsedItem.chat || !parsedItem.chat.server || !parsedItem.chat.protocol) {
43
43
  return null;
44
44
  }
45
45
  return {
@@ -1 +1 @@
1
- {"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../../../src/lib/rss/channel/channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAA0B,OAAO,EAAkB,kBAAkB,EAAiB,MAAM,cAAc,CAAC;AAoBlH,eAAO,MAAM,mBAAmB,GAAU,YAAY,UAAU,EAAE,SAAS,OAAO,EAAE,oBAAoB,kBAAkB,kBAgBzH,CAAC"}
1
+ {"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../../../../src/lib/rss/channel/channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAA0B,OAAO,EAAkB,kBAAkB,EAAiB,MAAM,cAAc,CAAC;AAoBlH,eAAO,MAAM,mBAAmB,GAAU,YAAY,UAAU,EAAE,SAAS,OAAO,EAAE,oBAAoB,kBAAkB,kBAgBzH,CAAC"}
@@ -10,9 +10,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.handleParsedChannel = void 0;
13
- const podverse_helpers_1 = require("podverse-helpers");
14
13
  const podverse_orm_1 = require("podverse-orm");
15
- const config_1 = require("@parser/config");
16
14
  const channel_1 = require("@parser/lib/compat/partytime/channel");
17
15
  const channelAbout_1 = require("@parser/lib/rss/channel/channelAbout");
18
16
  const channelCategory_1 = require("@parser/lib/rss/channel/channelCategory");
@@ -30,12 +28,13 @@ const channelSocialInteract_1 = require("@parser/lib/rss/channel/channelSocialIn
30
28
  const channelTrailer_1 = require("@parser/lib/rss/channel/channelTrailer");
31
29
  const channelTxt_1 = require("@parser/lib/rss/channel/channelTxt");
32
30
  const channelValue_1 = require("@parser/lib/rss/channel/channelValue");
31
+ const timerManager_1 = require("@parser/factories/timerManager");
33
32
  const handleParsedChannel = (parsedFeed, channel, channelSeasonIndex) => __awaiter(void 0, void 0, void 0, function* () {
34
- podverse_helpers_1.timerManager.start('handleParsedChannel');
33
+ timerManager_1.timerManager.start('handleParsedChannel');
35
34
  const channelService = new podverse_orm_1.ChannelService();
36
35
  const channelDto = (0, channel_1.compatChannelDto)(parsedFeed);
37
36
  yield channelService.update(channel.id, channelDto);
38
- if (config_1.config.shouldLogTimer) {
37
+ if (timerManager_1.timerManager.shouldLogTimer) {
39
38
  yield handleParsingTables(parsedFeed, channel, channelSeasonIndex);
40
39
  }
41
40
  else {
@@ -43,7 +42,7 @@ const handleParsedChannel = (parsedFeed, channel, channelSeasonIndex) => __await
43
42
  yield handleParsingTables(parsedFeed, channel, channelSeasonIndex, transactionalEntityManager);
44
43
  }));
45
44
  }
46
- podverse_helpers_1.timerManager.end('handleParsedChannel');
45
+ timerManager_1.timerManager.end('handleParsedChannel');
47
46
  });
48
47
  exports.handleParsedChannel = handleParsedChannel;
49
48
  const handleParsingTables = (parsedFeed, channel, channelSeasonIndex, transactionalEntityManager) => __awaiter(void 0, void 0, void 0, function* () {
@@ -1 +1 @@
1
- {"version":3,"file":"channelAbout.d.ts","sourceRoot":"","sources":["../../../../src/lib/rss/channel/channelAbout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAuB,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAG3E,eAAO,MAAM,wBAAwB,GACnC,YAAY,UAAU,EACtB,SAAS,OAAO,EAChB,6BAA6B,aAAa,kBAO3C,CAAC"}
1
+ {"version":3,"file":"channelAbout.d.ts","sourceRoot":"","sources":["../../../../src/lib/rss/channel/channelAbout.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAuB,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAI3E,eAAO,MAAM,wBAAwB,GACnC,YAAY,UAAU,EACtB,SAAS,OAAO,EAChB,6BAA6B,aAAa,kBAO3C,CAAC"}
@@ -10,14 +10,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.handleParsedChannelAbout = void 0;
13
- const podverse_helpers_1 = require("podverse-helpers");
14
13
  const podverse_orm_1 = require("podverse-orm");
15
14
  const channel_1 = require("@parser/lib/compat/partytime/channel");
15
+ const timerManager_1 = require("@parser/factories/timerManager");
16
16
  const handleParsedChannelAbout = (parsedFeed, channel, transactionalEntityManager) => __awaiter(void 0, void 0, void 0, function* () {
17
- podverse_helpers_1.timerManager.start("handleParsedChannelAbout");
17
+ timerManager_1.timerManager.start("handleParsedChannelAbout");
18
18
  const channelAboutService = new podverse_orm_1.ChannelAboutService(transactionalEntityManager);
19
19
  const channelAboutDto = (0, channel_1.compatChannelAboutDto)(parsedFeed);
20
20
  yield channelAboutService.update(channel, channelAboutDto);
21
- podverse_helpers_1.timerManager.end("handleParsedChannelAbout");
21
+ timerManager_1.timerManager.end("handleParsedChannelAbout");
22
22
  });
23
23
  exports.handleParsedChannelAbout = handleParsedChannelAbout;
@@ -1 +1 @@
1
- {"version":3,"file":"channelCategory.d.ts","sourceRoot":"","sources":["../../../../src/lib/rss/channel/channelCategory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,OAAO,EAA0B,aAAa,EAAE,MAAM,cAAc,CAAC;AAG9E,eAAO,MAAM,2BAA2B,GACtC,YAAY,UAAU,EACtB,SAAS,OAAO,EAChB,6BAA6B,aAAa,kBAY3C,CAAC"}
1
+ {"version":3,"file":"channelCategory.d.ts","sourceRoot":"","sources":["../../../../src/lib/rss/channel/channelCategory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAA0B,aAAa,EAAE,MAAM,cAAc,CAAC;AAI9E,eAAO,MAAM,2BAA2B,GACtC,YAAY,UAAU,EACtB,SAAS,OAAO,EAChB,6BAA6B,aAAa,kBAY3C,CAAC"}
@@ -10,11 +10,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.handleParsedChannelCategory = void 0;
13
- const podverse_helpers_1 = require("podverse-helpers");
14
13
  const podverse_orm_1 = require("podverse-orm");
15
14
  const channel_1 = require("@parser/lib/compat/partytime/channel");
15
+ const timerManager_1 = require("@parser/factories/timerManager");
16
16
  const handleParsedChannelCategory = (parsedFeed, channel, transactionalEntityManager) => __awaiter(void 0, void 0, void 0, function* () {
17
- podverse_helpers_1.timerManager.start("handleParsedChannelCategory");
17
+ timerManager_1.timerManager.start("handleParsedChannelCategory");
18
18
  const channelCategoryService = new podverse_orm_1.ChannelCategoryService(transactionalEntityManager);
19
19
  const channelCategoryDtos = (0, channel_1.compatChannelCategoryDtos)(parsedFeed);
20
20
  if (channelCategoryDtos.length > 0) {
@@ -23,6 +23,6 @@ const handleParsedChannelCategory = (parsedFeed, channel, transactionalEntityMan
23
23
  else {
24
24
  yield channelCategoryService.deleteAll(channel);
25
25
  }
26
- podverse_helpers_1.timerManager.end("handleParsedChannelCategory");
26
+ timerManager_1.timerManager.end("handleParsedChannelCategory");
27
27
  });
28
28
  exports.handleParsedChannelCategory = handleParsedChannelCategory;
@@ -1 +1 @@
1
- {"version":3,"file":"channelChat.d.ts","sourceRoot":"","sources":["../../../../src/lib/rss/channel/channelChat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAsB,aAAa,EAAE,MAAM,cAAc,CAAC;AAI1E,eAAO,MAAM,uBAAuB,GAClC,YAAY,UAAU,EACtB,SAAS,OAAO,EAChB,6BAA6B,aAAa,kBAO3C,CAAC"}
1
+ {"version":3,"file":"channelChat.d.ts","sourceRoot":"","sources":["../../../../src/lib/rss/channel/channelChat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAsB,aAAa,EAAE,MAAM,cAAc,CAAC;AAK1E,eAAO,MAAM,uBAAuB,GAClC,YAAY,UAAU,EACtB,SAAS,OAAO,EAChB,6BAA6B,aAAa,kBAO3C,CAAC"}
@@ -10,15 +10,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.handleParsedChannelChat = void 0;
13
- const podverse_helpers_1 = require("podverse-helpers");
14
13
  const podverse_orm_1 = require("podverse-orm");
15
14
  const channel_1 = require("@parser/lib/compat/partytime/channel");
16
15
  const handleParsedOneData_1 = require("../base/handleParsedOneData");
16
+ const timerManager_1 = require("@parser/factories/timerManager");
17
17
  const handleParsedChannelChat = (parsedFeed, channel, transactionalEntityManager) => __awaiter(void 0, void 0, void 0, function* () {
18
- podverse_helpers_1.timerManager.start("handleParsedChannelChat");
18
+ timerManager_1.timerManager.start("handleParsedChannelChat");
19
19
  const channelChatService = new podverse_orm_1.ChannelChatService(transactionalEntityManager);
20
20
  const channelChatDto = (0, channel_1.compatChannelChatDto)(parsedFeed);
21
21
  yield (0, handleParsedOneData_1.handleParsedOneData)(channel, channelChatService, channelChatDto);
22
- podverse_helpers_1.timerManager.end("handleParsedChannelChat");
22
+ timerManager_1.timerManager.end("handleParsedChannelChat");
23
23
  });
24
24
  exports.handleParsedChannelChat = handleParsedChannelChat;
@@ -1 +1 @@
1
- {"version":3,"file":"channelDescription.d.ts","sourceRoot":"","sources":["../../../../src/lib/rss/channel/channelDescription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,OAAO,EAA6B,aAAa,EAAE,MAAM,cAAc,CAAC;AAIjF,eAAO,MAAM,8BAA8B,GACzC,YAAY,UAAU,EACtB,SAAS,OAAO,EAChB,6BAA6B,aAAa,kBAO3C,CAAC"}
1
+ {"version":3,"file":"channelDescription.d.ts","sourceRoot":"","sources":["../../../../src/lib/rss/channel/channelDescription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAA6B,aAAa,EAAE,MAAM,cAAc,CAAC;AAKjF,eAAO,MAAM,8BAA8B,GACzC,YAAY,UAAU,EACtB,SAAS,OAAO,EAChB,6BAA6B,aAAa,kBAO3C,CAAC"}
@@ -10,15 +10,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.handleParsedChannelDescription = void 0;
13
- const podverse_helpers_1 = require("podverse-helpers");
14
13
  const podverse_orm_1 = require("podverse-orm");
15
14
  const channel_1 = require("@parser/lib/compat/partytime/channel");
16
15
  const handleParsedOneData_1 = require("../base/handleParsedOneData");
16
+ const timerManager_1 = require("@parser/factories/timerManager");
17
17
  const handleParsedChannelDescription = (parsedFeed, channel, transactionalEntityManager) => __awaiter(void 0, void 0, void 0, function* () {
18
- podverse_helpers_1.timerManager.start("handleParsedChannelDescription");
18
+ timerManager_1.timerManager.start("handleParsedChannelDescription");
19
19
  const channelDescriptionService = new podverse_orm_1.ChannelDescriptionService(transactionalEntityManager);
20
20
  const channelDescriptionDto = (0, channel_1.compatChannelDescriptionDto)(parsedFeed);
21
21
  yield (0, handleParsedOneData_1.handleParsedOneData)(channel, channelDescriptionService, channelDescriptionDto);
22
- podverse_helpers_1.timerManager.end("handleParsedChannelDescription");
22
+ timerManager_1.timerManager.end("handleParsedChannelDescription");
23
23
  });
24
24
  exports.handleParsedChannelDescription = handleParsedChannelDescription;
@@ -1 +1 @@
1
- {"version":3,"file":"channelFunding.d.ts","sourceRoot":"","sources":["../../../../src/lib/rss/channel/channelFunding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAyB,aAAa,EAAE,MAAM,cAAc,CAAC;AAI7E,eAAO,MAAM,0BAA0B,GACrC,YAAY,UAAU,EACtB,SAAS,OAAO,EAChB,6BAA6B,aAAa,kBAO3C,CAAC"}
1
+ {"version":3,"file":"channelFunding.d.ts","sourceRoot":"","sources":["../../../../src/lib/rss/channel/channelFunding.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAyB,aAAa,EAAE,MAAM,cAAc,CAAC;AAK7E,eAAO,MAAM,0BAA0B,GACrC,YAAY,UAAU,EACtB,SAAS,OAAO,EAChB,6BAA6B,aAAa,kBAO3C,CAAC"}
@@ -10,15 +10,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.handleParsedChannelFunding = void 0;
13
- const podverse_helpers_1 = require("podverse-helpers");
14
13
  const podverse_orm_1 = require("podverse-orm");
15
14
  const channel_1 = require("@parser/lib/compat/partytime/channel");
16
15
  const handleParsedManyData_1 = require("../base/handleParsedManyData");
16
+ const timerManager_1 = require("@parser/factories/timerManager");
17
17
  const handleParsedChannelFunding = (parsedFeed, channel, transactionalEntityManager) => __awaiter(void 0, void 0, void 0, function* () {
18
- podverse_helpers_1.timerManager.start("handleParsedChannelFunding");
18
+ timerManager_1.timerManager.start("handleParsedChannelFunding");
19
19
  const channelFundingService = new podverse_orm_1.ChannelFundingService(transactionalEntityManager);
20
20
  const channelFundingDtos = (0, channel_1.compatChannelFundingDtos)(parsedFeed);
21
21
  yield (0, handleParsedManyData_1.handleParsedManyData)(channel, channelFundingService, channelFundingDtos);
22
- podverse_helpers_1.timerManager.end("handleParsedChannelFunding");
22
+ timerManager_1.timerManager.end("handleParsedChannelFunding");
23
23
  });
24
24
  exports.handleParsedChannelFunding = handleParsedChannelFunding;
@@ -1 +1 @@
1
- {"version":3,"file":"channelImage.d.ts","sourceRoot":"","sources":["../../../../src/lib/rss/channel/channelImage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAuB,aAAa,EAAE,MAAM,cAAc,CAAC;AAI3E,eAAO,MAAM,wBAAwB,GACnC,YAAY,UAAU,EACtB,SAAS,OAAO,EAChB,6BAA6B,aAAa,kBAO3C,CAAC"}
1
+ {"version":3,"file":"channelImage.d.ts","sourceRoot":"","sources":["../../../../src/lib/rss/channel/channelImage.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAuB,aAAa,EAAE,MAAM,cAAc,CAAC;AAK3E,eAAO,MAAM,wBAAwB,GACnC,YAAY,UAAU,EACtB,SAAS,OAAO,EAChB,6BAA6B,aAAa,kBAO3C,CAAC"}
@@ -10,15 +10,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.handleParsedChannelImage = void 0;
13
- const podverse_helpers_1 = require("podverse-helpers");
14
13
  const podverse_orm_1 = require("podverse-orm");
15
14
  const channel_1 = require("@parser/lib/compat/partytime/channel");
16
15
  const handleParsedManyData_1 = require("../base/handleParsedManyData");
16
+ const timerManager_1 = require("@parser/factories/timerManager");
17
17
  const handleParsedChannelImage = (parsedFeed, channel, transactionalEntityManager) => __awaiter(void 0, void 0, void 0, function* () {
18
- podverse_helpers_1.timerManager.start("handleParsedChannelImage");
18
+ timerManager_1.timerManager.start("handleParsedChannelImage");
19
19
  const channelImageService = new podverse_orm_1.ChannelImageService(transactionalEntityManager);
20
20
  const channelImageDtos = (0, channel_1.compatChannelImageDtos)(parsedFeed);
21
21
  yield (0, handleParsedManyData_1.handleParsedManyData)(channel, channelImageService, channelImageDtos);
22
- podverse_helpers_1.timerManager.end("handleParsedChannelImage");
22
+ timerManager_1.timerManager.end("handleParsedChannelImage");
23
23
  });
24
24
  exports.handleParsedChannelImage = handleParsedChannelImage;
@@ -1 +1 @@
1
- {"version":3,"file":"channelLicense.d.ts","sourceRoot":"","sources":["../../../../src/lib/rss/channel/channelLicense.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,OAAO,EAAyB,aAAa,EAAE,MAAM,cAAc,CAAC;AAI7E,eAAO,MAAM,0BAA0B,GACrC,YAAY,UAAU,EACtB,SAAS,OAAO,EAChB,6BAA6B,aAAa,kBAO3C,CAAC"}
1
+ {"version":3,"file":"channelLicense.d.ts","sourceRoot":"","sources":["../../../../src/lib/rss/channel/channelLicense.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAyB,aAAa,EAAE,MAAM,cAAc,CAAC;AAK7E,eAAO,MAAM,0BAA0B,GACrC,YAAY,UAAU,EACtB,SAAS,OAAO,EAChB,6BAA6B,aAAa,kBAO3C,CAAC"}
@@ -10,15 +10,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.handleParsedChannelLicense = void 0;
13
- const podverse_helpers_1 = require("podverse-helpers");
14
13
  const podverse_orm_1 = require("podverse-orm");
15
14
  const channel_1 = require("@parser/lib/compat/partytime/channel");
16
15
  const handleParsedOneData_1 = require("../base/handleParsedOneData");
16
+ const timerManager_1 = require("@parser/factories/timerManager");
17
17
  const handleParsedChannelLicense = (parsedFeed, channel, transactionalEntityManager) => __awaiter(void 0, void 0, void 0, function* () {
18
- podverse_helpers_1.timerManager.start("handleParsedChannelLicense");
18
+ timerManager_1.timerManager.start("handleParsedChannelLicense");
19
19
  const channelLicenseService = new podverse_orm_1.ChannelLicenseService(transactionalEntityManager);
20
20
  const channelLicenseDtos = (0, channel_1.compatChannelLicenseDto)(parsedFeed);
21
21
  yield (0, handleParsedOneData_1.handleParsedOneData)(channel, channelLicenseService, channelLicenseDtos);
22
- podverse_helpers_1.timerManager.end("handleParsedChannelLicense");
22
+ timerManager_1.timerManager.end("handleParsedChannelLicense");
23
23
  });
24
24
  exports.handleParsedChannelLicense = handleParsedChannelLicense;
@@ -1 +1 @@
1
- {"version":3,"file":"channelLocation.d.ts","sourceRoot":"","sources":["../../../../src/lib/rss/channel/channelLocation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAE/C,OAAO,EAAE,OAAO,EAA0B,aAAa,EAAE,MAAM,cAAc,CAAC;AAI9E,eAAO,MAAM,2BAA2B,GACtC,YAAY,UAAU,EACtB,SAAS,OAAO,EAChB,6BAA6B,aAAa,kBAO3C,CAAC"}
1
+ {"version":3,"file":"channelLocation.d.ts","sourceRoot":"","sources":["../../../../src/lib/rss/channel/channelLocation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAA0B,aAAa,EAAE,MAAM,cAAc,CAAC;AAK9E,eAAO,MAAM,2BAA2B,GACtC,YAAY,UAAU,EACtB,SAAS,OAAO,EAChB,6BAA6B,aAAa,kBAO3C,CAAC"}
@@ -10,15 +10,15 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.handleParsedChannelLocation = void 0;
13
- const podverse_helpers_1 = require("podverse-helpers");
14
13
  const podverse_orm_1 = require("podverse-orm");
15
14
  const channel_1 = require("@parser/lib/compat/partytime/channel");
16
15
  const handleParsedOneData_1 = require("../base/handleParsedOneData");
16
+ const timerManager_1 = require("@parser/factories/timerManager");
17
17
  const handleParsedChannelLocation = (parsedFeed, channel, transactionalEntityManager) => __awaiter(void 0, void 0, void 0, function* () {
18
- podverse_helpers_1.timerManager.start("handleParsedChannelLocation");
18
+ timerManager_1.timerManager.start("handleParsedChannelLocation");
19
19
  const channelLocationService = new podverse_orm_1.ChannelLocationService(transactionalEntityManager);
20
20
  const channelLocationDtos = (0, channel_1.compatChannelLocationDto)(parsedFeed);
21
21
  yield (0, handleParsedOneData_1.handleParsedOneData)(channel, channelLocationService, channelLocationDtos);
22
- podverse_helpers_1.timerManager.end("handleParsedChannelLocation");
22
+ timerManager_1.timerManager.end("handleParsedChannelLocation");
23
23
  });
24
24
  exports.handleParsedChannelLocation = handleParsedChannelLocation;