()
| 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; |
nothing calls this directly
no test coverage detected