High performance self-hosted photo and video management solution.
TypeScript backup-toolfluttergoogle-photosgoogle-photos-alternativejavascriptmobile-appnestjsnodejsphoto-galleryphotosphotos-managementself-hostedsveltesveltekittypescriptvideos
chore(mobile): add timeout when reading video files (#14831)
Alexa14735846cb0
diff --git a/mobile/lib/services/backup.service.dart b/mobile/lib/services/backup.service.dartindex a0b6bf16c2..7bce1047e2 100644--- a/mobile/lib/services/backup.service.dart+++ b/mobile/lib/services/backup.service.dart@@ -313,15 +313,12 @@ class BackupService {);}} else {- if (asset.type == AssetType.video) {- file = await asset.local!.originFile;- } else {- file = await asset.local!.originFile+ file =+ await asset.local!.originFile.timeout(const Duration(seconds: 5));++ if (asset.local!.isLivePhoto) {+ livePhotoFile = await asset.local!.originFileWithSubtype.timeout(const Duration(seconds: 5));- if (asset.local!.isLivePhoto) {- livePhotoFile = await asset.local!.originFileWithSubtype- .timeout(const Duration(seconds: 5));- }}}