Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

fix: remove skipped

Prateek Sunald99615b24ff0
diff --git a/mobile/apps/photos/lib/services/video_preview_service.dart b/mobile/apps/photos/lib/services/video_preview_service.dart
index 6ebb8ae3fb..b8ec7ae159 100644
--- a/mobile/apps/photos/lib/services/video_preview_service.dart
+++ b/mobile/apps/photos/lib/services/video_preview_service.dart
@@ -46,19 +46,17 @@ const _maxRetryCount = 3;
class StreamingStatus {
final double netProcessedItems;
final int processed;
- final int skipped;
final int total;
StreamingStatus(
this.netProcessedItems,
this.processed,
- this.skipped,
this.total,
);
@override
String toString() {
- return 'StreamingStatus{netProcessedItems: $netProcessedItems, processed: $processed, skipped: $skipped, total: $total}';
+ return 'StreamingStatus{netProcessedItems: $netProcessedItems, processed: $processed, total: $total}';
}
}
@@ -209,7 +207,6 @@ class VideoPreviewService {
final Set<int> total = {};
// Processed: All the video files that are processed within the total
final Set<int> processed = {};
- int skipped = 0;
for (final file in files) {
// If file is processed, then add it to specific set
@@ -218,7 +215,6 @@ class VideoPreviewService {
}
// Don't include files which are to be skipped anyways
else if (file.pubMagicMetadata?.sv == 1) {
- skipped++;
continue;
}
// Include the file to total set
@@ -235,10 +231,8 @@ class VideoPreviewService {
final status = StreamingStatus(
netProcessedItems,
totalProcessed.length,
- skipped,
files.length,
);
- _logger.info("$status");
return status;
} catch (e, s) {
_logger.severe('Error getting Streaming status', e, s);