MCPcopy Index your code
hub / github.com/MALSync/MALSync / sync

Method sync

src/pages-sync/syncPage.ts:551–561  ·  view source on GitHub ↗
(state)

Source from the content-addressed store, hash-verified

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(

Callers 9

startSyncHandlingMethod · 0.95
mainFunction · 0.80
generateChibiTypesFunction · 0.80
generalSingleTestsFunction · 0.80
syncItemFunction · 0.80
listSyncInitFunction · 0.80
undoFunction · 0.80
setImageMethod · 0.80
syncHandlingMethod · 0.80

Calls 1

syncHandlingMethod · 0.95

Tested by

no test coverage detected