(state)
| 549 | } |
| 550 | |
| 551 | protected async sync(state) { |
| 552 | await this.singleObj.lifeCycleHook('beforeSync'); |
| 553 | this.singleObj.setResumeWatching(this.url, state.episode); |
| 554 | if (typeof this.page.sync.nextEpUrl !== 'undefined') { |
| 555 | const continueWatching = this.page.sync.nextEpUrl(this.url); |
| 556 | if (continueWatching && !(continueWatching.indexOf('undefined') !== -1)) { |
| 557 | this.singleObj.setContinueWatching(continueWatching, state.episode! + 1); |
| 558 | } |
| 559 | } |
| 560 | this.syncHandling(true); |
| 561 | } |
| 562 | |
| 563 | public generateLocalUrl(page, state) { |
| 564 | return `local://${page.name}/${page.type}/${state.identifier}/${encodeURIComponent( |
no test coverage detected