[mob][photos] Index videos using thumbnails
This commit is contained in:
@@ -966,7 +966,12 @@ class FaceMlService {
|
||||
switch (typeOfData) {
|
||||
case FileDataForML.fileData:
|
||||
final stopwatch = Stopwatch()..start();
|
||||
final File? file = await getFile(enteFile, isOrigin: true);
|
||||
File? file;
|
||||
if (enteFile.fileType == FileType.video) {
|
||||
file = await getThumbnailForUploadedFile(enteFile);
|
||||
} else {
|
||||
file = await getFile(enteFile, isOrigin: true);
|
||||
}
|
||||
if (file == null) {
|
||||
_logger.warning("Could not get file for $enteFile");
|
||||
imagePath = null;
|
||||
@@ -1294,10 +1299,6 @@ class FaceMlService {
|
||||
if (!enteFile.isUploaded || enteFile.isOwner == false) {
|
||||
return true;
|
||||
}
|
||||
// Skip if the file is a video
|
||||
if (enteFile.fileType == FileType.video) {
|
||||
return true;
|
||||
}
|
||||
// I don't know how motionPhotos and livePhotos work, so I'm also just skipping them for now
|
||||
if (enteFile.fileType == FileType.other) {
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user