()
| 110 | } |
| 111 | |
| 112 | async getCompleteList(): Promise<listElement[]> { |
| 113 | do { |
| 114 | // eslint-disable-next-line no-await-in-loop |
| 115 | await this.getNext(); |
| 116 | } while (!this.done); |
| 117 | |
| 118 | if (this.modes.sortAiring) await this.sortAiringList(); |
| 119 | |
| 120 | if (this.modes.cached) this.getCache().setValue(this.templist.slice(0, 18)); |
| 121 | |
| 122 | this.firstLoaded = true; |
| 123 | |
| 124 | return this.templist; |
| 125 | } |
| 126 | |
| 127 | async getNextPage(): Promise<listElement[]> { |
| 128 | if (this.done) return this.templist; |