MCPcopy
hub / github.com/MALSync/MALSync / imageFallbackInternal

Method imageFallbackInternal

src/pages-sync/syncPage.ts:976–993  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

974 }
975
976 async function imageFallbackInternal() {
977 let image: string | undefined;
978 if (this.page.getImage) {
979 image = await this.page.getImage();
980 }
981 if (!image && this.page.sync.getImage && state.on === 'SYNC') {
982 image = this.page.sync.getImage();
983 }
984 if (!image && this.page.overview?.getImage && state.on === 'OVERVIEW') {
985 image = this.page.overview.getImage();
986 }
987
988 if (image) {
989 con.log('Image Fallback', image);
990 clearInterval(this.imageFallbackInterval);
991 this.singleObj.setImage(image);
992 }
993 }
994 }
995
996 incorrectUrl() {

Callers

nothing calls this directly

Calls 2

setImageMethod · 0.80
getImageMethod · 0.45

Tested by

no test coverage detected