-
-
Address
-
-
-
-
-
-
- {recentComic.inferredMetadata.issue.number}
-
-
-
-
-
-
+ {recentComics?.data.docs.map(
+ (
+ {
+ _id,
+ rawFileDetails,
+ sourcedMetadata: { comicvine, comicInfo, locg },
+ inferredMetadata,
+ acquisition: {
+ source: { name },
+ },
+ },
+ idx,
+ ) => {
+ const { issueName, url } = determineCoverFile({
+ rawFileDetails,
+ comicvine,
+ comicInfo,
+ locg,
+ });
+ const { issue, coverURL, icon } = determineExternalMetadata(
+ name,
+ {
+ comicvine,
+ comicInfo,
+ locg,
+ },
+ );
+ const isComicVineMetadataAvailable =
+ !isUndefined(comicvine) &&
+ !isUndefined(comicvine.volumeInformation);
-
- {recentComic.rawFileDetails.extension}
-
-
-
-
+ return (
+
+
+
Address
+
+ {/* Issue number */}
+
+
+
+
+
+ {inferredMetadata.issue.number}
+
+
+ {/* File extension */}
+
+
+
+
-
-
-
+
+ {rawFileDetails.extension}
+
+
+
+
- {/*
*/}
-
-
-
-
-
- ))}
+
+
+ {/* ComicInfo.xml presence */}
+ {!isNil(comicInfo) && !isEmpty(comicInfo) && (
+
+ )}
+ {/* ComicVine metadata presence */}
+ {isComicVineMetadataAvailable && (
+
+
+
+ )}
+
+ {/* Raw file presence */}
+ {isNil(rawFileDetails) && (
+
+
+
+ )}
+
+