podverse-external-services 5.1.3-alpha.3 → 5.1.4-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.
|
@@ -20,7 +20,7 @@ export declare class PodcastIndexService {
|
|
|
20
20
|
id_to_archive: number;
|
|
21
21
|
duplicate_id_to_keep: number | null;
|
|
22
22
|
};
|
|
23
|
-
podcastGetById: (
|
|
23
|
+
podcastGetById: (podcast_index_id: number) => Promise<any | null>;
|
|
24
24
|
podcastGetByGuid: (podcastGuid: string) => Promise<PodcastByGuidResponse | null>;
|
|
25
25
|
podcastsByMedium: (medium: string, max?: number) => Promise<any>;
|
|
26
26
|
recentGetData: (sinceRange: number) => Promise<any[]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/services/podcast-index/index.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,qBAAqB,EAAE,kCAAkC,EAC9C,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,aAAa,EAAE,MAAM,0CAA0C,CAAC;AAEzE,KAAK,WAAW,GAAG;IACjB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,aAAa,CAAA;CAC7B,CAAA;AASD,qBAAa,mBAAmB;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;IACf,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,aAAa,EAAE,aAAa,CAAC;gBAExB,EAAE,SAAS,EAAE,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,EAAE,WAAW;IAUnF,sBAAsB,GAAU,KAAK,MAAM,EAAE,SAAS,GAAG,kBA2BxD;IAID,8BAA8B,GAAU,gBAAgB,CAAC,GAAG,EA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AAU,YAAY,MAAM,oBA4BxC;IAID,cAAc,GACZ,MAAM,MAAM,EACZ,UAAS;QACP,GAAG,CAAC,EAAE,MAAM,CAAA;QACZ,GAAG,CAAC,EAAE,KAAK,GAAG,WAAW,GAAG,MAAM,GAAG,iBAAiB,CAAA;QACtD,MAAM,CAAC,EAAE,OAAO,CAAA;QAChB,KAAK,CAAC,EAAE,OAAO,CAAA;QACf,OAAO,CAAC,EAAE,OAAO,CAAA;QACjB,QAAQ,CAAC,EAAE,OAAO,CAAA;QAClB,MAAM,CAAC,EAAE,OAAO,CAAA;KACZ,KACL,OAAO,CAAC,kCAAkC,GAAG,IAAI,CAAC,CAqCpD;IAID,mBAAmB,GACjB,MAAK,MAAW,EAChB,QAAQ,MAAM,EACd,OAAO,MAAM,EACb,MAAM,MAAM,KACX,OAAO,CAAC;QAAE,KAAK,EAAE,GAAG,EAAE,CAAC;QAAC,SAAS,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAoB/C;IAID,oBAAoB,QAAa,OAAO,CAAC,MAAM,EAAE,CAAC,CAMjD;IAED,+BAA+B,GAC7B,4BAA4B,MAAM,EAAE,EAAE,gBAAW,KAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAatE;CACF"}
|
|
@@ -96,8 +96,8 @@ class PodcastIndexService {
|
|
|
96
96
|
};
|
|
97
97
|
};
|
|
98
98
|
// Podcast
|
|
99
|
-
this.podcastGetById = (
|
|
100
|
-
const url = `${this.baseUrl}/podcasts/byfeedid?id=${
|
|
99
|
+
this.podcastGetById = (podcast_index_id) => __awaiter(this, void 0, void 0, function* () {
|
|
100
|
+
const url = `${this.baseUrl}/podcasts/byfeedid?id=${podcast_index_id}`;
|
|
101
101
|
try {
|
|
102
102
|
const response = yield this.podcastIndexAPIRequest(url);
|
|
103
103
|
return response || null;
|
|
@@ -173,7 +173,6 @@ class PodcastIndexService {
|
|
|
173
173
|
params.push('pretty');
|
|
174
174
|
const query = params.join('&');
|
|
175
175
|
const url = `${this.baseUrl}/search/byterm?${query}`;
|
|
176
|
-
this.loggerService.info(`[PodcastIndex] Searching podcasts: term="${term}" max=${safeMax} val=${val || 'none'} flags=${[aponly && 'aponly', clean && 'clean', similar && 'similar', fulltext && 'fulltext', pretty && 'pretty'].filter(Boolean).join(',')}`);
|
|
177
176
|
try {
|
|
178
177
|
const response = yield this.podcastIndexAPIRequest(url);
|
|
179
178
|
return response || [];
|
|
@@ -207,8 +206,8 @@ class PodcastIndexService {
|
|
|
207
206
|
this.valueGetByPodcastIds = () => __awaiter(this, void 0, void 0, function* () {
|
|
208
207
|
const accumulatedPodcastIndexIds = [];
|
|
209
208
|
const nextStartAt = 1;
|
|
210
|
-
const
|
|
211
|
-
return
|
|
209
|
+
const podcast_index_ids = yield this.valueGetByPodcastIdsRecursively(accumulatedPodcastIndexIds, nextStartAt);
|
|
210
|
+
return podcast_index_ids;
|
|
212
211
|
});
|
|
213
212
|
this.valueGetByPodcastIdsRecursively = (accumulatedPodcastIndexIds_1, ...args_1) => __awaiter(this, [accumulatedPodcastIndexIds_1, ...args_1], void 0, function* (accumulatedPodcastIndexIds, startAt = 1) {
|
|
214
213
|
const url = `${this.baseUrl}/podcasts/bytag?podcast-valueTimeSplit=true&max=5000&start_at=${startAt}`;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "podverse-external-services",
|
|
3
|
-
"version": "5.1.
|
|
3
|
+
"version": "5.1.4-alpha.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"module-alias": "^2.2.3",
|
|
35
35
|
"paypal-rest-sdk": "2.0.0-rc.2",
|
|
36
36
|
"podcast-partytime": "^4.9.1",
|
|
37
|
-
"podverse-helpers": "^5.1.
|
|
37
|
+
"podverse-helpers": "^5.1.4-alpha.2",
|
|
38
38
|
"web-push": "^3.6.7"
|
|
39
39
|
}
|
|
40
40
|
}
|