MCPcopy Index your code
hub / github.com/MALSync/MALSync / initProgress

Function initProgress

src/_provider/singleAbstract.ts:267–285  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

265 protected progressXhr?: ProgressItem[];
266
267 public async initProgress() {
268 const xhr = await predictionXhrGET(this.getType()!, this.getApiCacheKey());
269 return new ProgressRelease(this.getCacheKey(), this.getType()!)
270 .init({
271 uid: this.getCacheKey(),
272 apiCacheKey: this.getApiCacheKey(),
273 title: this.getTitle(),
274 cacheKey: this.getCacheKey(),
275 progressMode: this.getProgressMode(),
276 watchedEp: this.getEpisode(),
277 single: this,
278 xhr,
279 })
280 .then(progress => {
281 this.updateProgress = false;
282 this.progress = progress;
283 this.progressXhr = xhr;
284 });
285 }
286
287 public getProgress() {
288 if (!this.progress) return null;

Callers

nothing calls this directly

Calls 4

predictionXhrGETFunction · 0.90
initMethod · 0.45
getCacheKeyMethod · 0.45
getTitleMethod · 0.45

Tested by

no test coverage detected