Revert "Fix wrong mime types used when counting file w/o metadata"

This reverts commit 97f1b25ae9.
This commit is contained in:
Ming Ming 2024-11-22 00:26:33 +08:00
parent 0e4ecf4f2b
commit 114b52d0e9
2 changed files with 3 additions and 3 deletions

View file

@ -67,7 +67,7 @@ class MetadataController {
try {
final missingCount = await _c.npDb.countFilesByMissingMetadata(
account: account.toDb(),
mimes: file_util.metadataSupportedFormatMimes,
mimes: file_util.supportedImageFormatMimes,
ownerId: account.userId.toCaseInsensitiveString(),
);
_log.info("[_startMetadataTask] Missing count: $missingCount");

View file

@ -27,7 +27,7 @@ bool isSupportedVideoFormat(FileDescriptor file) =>
isSupportedVideoMime(file.fdMime ?? "");
bool isMetadataSupportedMime(String mime) =>
metadataSupportedFormatMimes.contains(mime);
_metadataSupportedFormatMimes.contains(mime);
bool isMetadataSupportedFormat(FileDescriptor file) =>
isMetadataSupportedMime(file.fdMime ?? "");
@ -138,7 +138,7 @@ final supportedImageFormatMimes =
final supportedVideoFormatMimes =
supportedFormatMimes.where((f) => f.startsWith("video/")).toList();
const metadataSupportedFormatMimes = [
const _metadataSupportedFormatMimes = [
"image/jpeg",
"image/heic",
];