()
| 595 | rules: RulesClass | undefined; |
| 596 | |
| 597 | async initRules() { |
| 598 | const logger = con.m('Rules'); |
| 599 | const url = this.getUrl(); |
| 600 | logger.log('Url', url); |
| 601 | if (url) { |
| 602 | const cacheKeyObj = await getRulesCacheKey(url); |
| 603 | logger.log('Cachekey', cacheKeyObj); |
| 604 | this.rules = await new RulesClass(cacheKeyObj.rulesCacheKey, this.getNormalizedType()).init(); |
| 605 | return cacheKeyObj.singleObj; |
| 606 | } |
| 607 | return undefined; |
| 608 | } |
| 609 | |
| 610 | applyRules(episode: number) { |
| 611 | if (this.rules) { |
no test coverage detected