podverse-parser 5.1.5-alpha.0 → 5.1.5-alpha.1

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.
@@ -12,7 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.parseRSSFeedAndSaveToDatabase = exports.getAndParseRSSFeed = void 0;
13
13
  const podcast_partytime_1 = require("podcast-partytime");
14
14
  const podverse_orm_1 = require("podverse-orm");
15
- const notifications_1 = require("@parser/lib/notifications");
15
+ // import { handleNewItemsNotifications, handleNewLiveItemsNotifications } from '@parser/lib/notifications';
16
16
  const channel_1 = require("@parser/lib/rss/channel/channel");
17
17
  const channelSeason_1 = require("@parser/lib/rss/channel/channelSeason");
18
18
  const feed_1 = require("@parser/lib/rss/feed/feed");
@@ -22,8 +22,8 @@ const remoteItemParser_1 = require("@parser/lib/rss/remoteItemParser");
22
22
  const errors_1 = require("./errors");
23
23
  const timerManager_1 = require("@parser/factories/timerManager");
24
24
  const loggerService_1 = require("@parser/factories/loggerService");
25
- const firebaseAccessTokenService_1 = require("@parser/factories/firebaseAccessTokenService");
26
- const notificationsService_1 = require("@parser/factories/notificationsService");
25
+ // import { firebaseAccessTokenServiceFactory } from '@parser/factories/firebaseAccessTokenService';
26
+ // import { NotificationsServiceFactory } from '@parser/factories/notificationsService';
27
27
  const _request_1 = require("../_request");
28
28
  /*
29
29
  NOTE: All RSS feeds that have a podcast_index_id will be saved to the database.
@@ -74,17 +74,17 @@ const parseRSSFeedAndSaveToDatabase = (url_1, podcast_index_id_1, ...args_1) =>
74
74
  newLiveItemIdentifiers = yield (0, liveItem_1.handleParsedLiveItems)(parsedFeed.podcastLiveItems, channel, channelSeasonIndex);
75
75
  }
76
76
  if (newItemIdentifiers.newItemGuids.length > 0 || newLiveItemIdentifiers.newItemGuids.length > 0) {
77
- const firebaseAccessTokenService = (0, firebaseAccessTokenService_1.firebaseAccessTokenServiceFactory)();
78
- const googleAuthToken = yield firebaseAccessTokenService.generateAccessToken();
79
- const notificationsService = (0, notificationsService_1.NotificationsServiceFactory)(googleAuthToken);
80
- const accountFCMDeviceService = new podverse_orm_1.AccountFCMDeviceService();
81
- const itemService = new podverse_orm_1.ItemService();
82
- if (newItemIdentifiers.newItemGuids.length > 0) {
83
- yield (0, notifications_1.handleNewItemsNotifications)(newItemIdentifiers, channel, notificationsService, accountFCMDeviceService, itemService);
84
- }
85
- if (newLiveItemIdentifiers.newItemGuids.length > 0) {
86
- yield (0, notifications_1.handleNewLiveItemsNotifications)(newLiveItemIdentifiers, channel, notificationsService, accountFCMDeviceService, itemService);
87
- }
77
+ // const firebaseAccessTokenService = firebaseAccessTokenServiceFactory();
78
+ // const googleAuthToken = await firebaseAccessTokenService.generateAccessToken();
79
+ // const notificationsService = NotificationsServiceFactory(googleAuthToken);
80
+ // const accountFCMDeviceService = new AccountFCMDeviceService();
81
+ // const itemService = new ItemService();
82
+ // if (newItemIdentifiers.newItemGuids.length > 0) {
83
+ // await handleNewItemsNotifications(newItemIdentifiers, channel, notificationsService, accountFCMDeviceService, itemService);
84
+ // }
85
+ // if (newLiveItemIdentifiers.newItemGuids.length > 0) {
86
+ // await handleNewLiveItemsNotifications(newLiveItemIdentifiers, channel, notificationsService, accountFCMDeviceService, itemService);
87
+ // }
88
88
  }
89
89
  const feedLogService = new podverse_orm_1.FeedLogService();
90
90
  yield feedLogService.update(feed, { last_finished_parse_time: new Date() });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "podverse-parser",
3
- "version": "5.1.5-alpha.0",
3
+ "version": "5.1.5-alpha.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",