Look for next advancement points
This commit is contained in:
parent
766dd2d85d
commit
9cfdc4cae9
2 changed files with 6 additions and 7 deletions
|
@ -354,7 +354,7 @@ export async function extractLivePhotoMetadata(
|
|||
parsedMetadataJSONMap: ParsedMetadataJSONMap,
|
||||
collectionID: number,
|
||||
fileTypeInfo: FileTypeInfo,
|
||||
livePhotoAssets: LivePhotoAssets,
|
||||
livePhotoAssets: LivePhotoAssets2,
|
||||
): Promise<ExtractMetadataResult> {
|
||||
const imageFileTypeInfo: FileTypeInfo = {
|
||||
fileType: FILE_TYPE.IMAGE,
|
||||
|
|
|
@ -34,7 +34,6 @@ import {
|
|||
ExtractMetadataResult,
|
||||
FileInMemory,
|
||||
FileTypeInfo,
|
||||
FileWithCollection,
|
||||
FileWithMetadata,
|
||||
Logger,
|
||||
ParsedMetadataJSON,
|
||||
|
@ -61,7 +60,6 @@ import {
|
|||
import { getFileType } from "../typeDetectionService";
|
||||
import {
|
||||
MAX_FILE_NAME_LENGTH_GOOGLE_EXPORT,
|
||||
clusterLivePhotoFiles,
|
||||
extractLivePhotoMetadata,
|
||||
extractMetadata,
|
||||
getClippedMetadataJSONMapKeyForFile,
|
||||
|
@ -156,7 +154,7 @@ class UploadService {
|
|||
|
||||
async extractAssetMetadata(
|
||||
worker: Remote<DedicatedCryptoWorker>,
|
||||
{ isLivePhoto, file, livePhotoAssets }: UploadAsset,
|
||||
{ isLivePhoto, file, livePhotoAssets }: UploadAsset2,
|
||||
collectionID: number,
|
||||
fileTypeInfo: FileTypeInfo,
|
||||
): Promise<ExtractMetadataResult> {
|
||||
|
@ -405,13 +403,14 @@ export async function extractFileMetadata(
|
|||
parsedMetadataJSONMap: ParsedMetadataJSONMap,
|
||||
collectionID: number,
|
||||
fileTypeInfo: FileTypeInfo,
|
||||
rawFile: File | ElectronFile,
|
||||
rawFile: File | ElectronFile | string,
|
||||
): Promise<ExtractMetadataResult> {
|
||||
let key = getMetadataJSONMapKeyForFile(collectionID, rawFile.name);
|
||||
const rawFileName = getFileName(rawFile)
|
||||
let key = getMetadataJSONMapKeyForFile(collectionID, rawFileName);
|
||||
let googleMetadata: ParsedMetadataJSON = parsedMetadataJSONMap.get(key);
|
||||
|
||||
if (!googleMetadata && key.length > MAX_FILE_NAME_LENGTH_GOOGLE_EXPORT) {
|
||||
key = getClippedMetadataJSONMapKeyForFile(collectionID, rawFile.name);
|
||||
key = getClippedMetadataJSONMapKeyForFile(collectionID, rawFileName);
|
||||
googleMetadata = parsedMetadataJSONMap.get(key);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue