Skip to content

Commit 6366661

Browse files
committed
remove duplicates/extras *before* finding dates
this *may* save us time
1 parent 92c70a2 commit 6366661

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

bin/gpth.dart

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,32 @@ void main(List<String> arguments) async {
216216

217217
/// ##################################################
218218
219+
/// ##### Find duplicates #####
220+
221+
// TODO: Check if we even need to print this if it's maybe fast enough
222+
print('Finding duplicates...');
223+
224+
final countDuplicates = removeDuplicates(media);
225+
226+
/// ###########################
227+
228+
/// ##### Potentially skip extras #####
229+
230+
if (args['skip-extras']) print('Finding "extra" photos (-edited etc)');
231+
final countExtras = args['skip-extras'] ? removeExtras(media) : 0;
232+
233+
/// ###################################
234+
235+
/// ##### Find albums #####
236+
237+
// Now, this is awkward...
238+
// we can find albums without a problem, but we have no idea what
239+
// to do about it 🤷
240+
// so just print it now (flex)
241+
// findAlbums(albumFolders, media).forEach(print);
242+
243+
/// #######################
244+
219245
/// ##### Extracting/predicting dates using given extractors #####
220246
221247
final barExtract = FillingBar(
@@ -244,32 +270,6 @@ void main(List<String> arguments) async {
244270

245271
/// ##############################################################
246272
247-
/// ##### Find duplicates #####
248-
249-
// TODO: Check if we even need to print this if it's maybe fast enough
250-
print('Finding duplicates...');
251-
252-
final countDuplicates = removeDuplicates(media);
253-
254-
/// ###########################
255-
256-
/// ##### Potentially skip extras #####
257-
258-
if (args['skip-extras']) print('Finding "extra" photos (-edited etc)');
259-
final countExtras = args['skip-extras'] ? removeExtras(media) : 0;
260-
261-
/// ###################################
262-
263-
/// ##### Find albums #####
264-
265-
// Now, this is awkward...
266-
// we can find albums without a problem, but we have no idea what
267-
// to do about it 🤷
268-
// so just print it now (flex)
269-
// findAlbums(albumFolders, media).forEach(print);
270-
271-
/// #######################
272-
273273
/// ##### Copy/move files to actual output folder #####
274274
275275
final barCopy = FillingBar(

0 commit comments

Comments
 (0)