MCPcopy Index your code
hub / github.com/ollm/OpenComic / readPages

Function readPages

scripts/reading/progress.js:127–143  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

125}
126
127async function readPages(path)
128{
129 const readingProgress = relative.get('readingProgress');
130 const paths = await findReadingProgressPaths(path, false);
131
132 let pages = 0;
133
134 for(const key of paths)
135 {
136 const progress = readingProgress[key];
137
138 if(progress && progress.page && fileManager.simpleExists(key, true))
139 pages += progress.page;
140 }
141
142 return pages;
143}
144
145var readingPages = false;
146

Callers 1

getFunction · 0.85

Calls 1

findReadingProgressPathsFunction · 0.85

Tested by

no test coverage detected