()
| 153 | } |
| 154 | |
| 155 | async getCached(): Promise<listElement[]> { |
| 156 | if (await this.getCache().hasValue()) { |
| 157 | const cachelist = await this.getCache().getValue(); |
| 158 | cachelist.forEach(item => { |
| 159 | item = this.fn(item); |
| 160 | item.watchedEp = ''; |
| 161 | item.score = ''; |
| 162 | }); |
| 163 | return cachelist; |
| 164 | } |
| 165 | return []; |
| 166 | } |
| 167 | |
| 168 | protected updateListener; |
| 169 |