mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-02 06:46:22 +01:00
Fix pixel live photos not playing when taken with JPG+RAW
This commit is contained in:
parent
4ecf46b024
commit
31200d3e02
1 changed files with 4 additions and 0 deletions
|
@ -5,6 +5,10 @@ LivePhotoType? getLivePhotoTypeFromFile(FileDescriptor file) {
|
||||||
final filenameL = file.filename.toLowerCase();
|
final filenameL = file.filename.toLowerCase();
|
||||||
if (filenameL.startsWith("pxl_") && filenameL.endsWith(".mp.jpg")) {
|
if (filenameL.startsWith("pxl_") && filenameL.endsWith(".mp.jpg")) {
|
||||||
return LivePhotoType.googleMp;
|
return LivePhotoType.googleMp;
|
||||||
|
} else if (filenameL.startsWith("pxl_") &&
|
||||||
|
filenameL.endsWith(".mp.cover.jpg")) {
|
||||||
|
// RAW
|
||||||
|
return LivePhotoType.googleMp;
|
||||||
} else if (filenameL.startsWith("mvimg_") && filenameL.endsWith(".jpg")) {
|
} else if (filenameL.startsWith("mvimg_") && filenameL.endsWith(".jpg")) {
|
||||||
return LivePhotoType.googleMvimg;
|
return LivePhotoType.googleMvimg;
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue