MCPcopy
hub / github.com/ollm/OpenComic / metadataPathName

Function metadataPathName

scripts/dom.js:193–206  ·  view source on GitHub ↗
(file, force = false)

Source from the content-addressed store, hash-verified

191}
192
193function metadataPathName(file, force = false)
194{
195 if(fileManager.isOpds(file.path))
196 {
197 return opds.pathName(file.name);
198 }
199 else if(file.compressed || force)
200 {
201 let metadata = storage.getKey('compressedMetadata', file.path);
202 if(metadata && metadata.title) return metadata.title;
203 }
204
205 return file.name;
206}
207
208async function readFilesIndexPage(path, mainPath, fromGoBack, notAutomaticBrowsing, fromGoForwards)
209{

Callers 4

loadFilesIndexPageFunction · 0.85
loadIndexPageFunction · 0.85
returnTextPathFunction · 0.85
headerPathFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected