Commit 32414e3 1 parent bfc574e commit 32414e3 Copy full SHA for 32414e3
File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1456,14 +1456,18 @@ class NamidaAudioVideoHandler<Q extends Playable> extends BasicAudioHandler<Q> {
1456
1456
1457
1457
final newFiles = < AudioCacheDetails > [];
1458
1458
1459
- for (final fe in Directory (dirPath).listSyncSafe ()) {
1459
+ final allFiles = Directory (dirPath).listSyncSafe ();
1460
+ final allLength = allFiles.length;
1461
+ for (int i = 0 ; i < allLength; i++ ) {
1462
+ final fe = allFiles[i];
1460
1463
final filename = fe.path.getFilename;
1461
1464
final goodID = filename.startsWith (id);
1462
1465
final isGood = fe is File && goodID && ! filename.endsWith ('.part' ) && ! filename.endsWith ('.mime' );
1463
1466
1464
1467
if (isGood) {
1465
1468
final details = _parseAudioCacheDetailsFromFile (fe);
1466
1469
newFiles.add (details);
1470
+ break ; // since its not likely to find other audios
1467
1471
}
1468
1472
}
1469
1473
return newFiles;
Original file line number Diff line number Diff line change 1
1
name : namida
2
2
description : A Beautiful and Feature-rich Music Player, With YouTube & Video Support Built in Flutter
3
3
publish_to : " none"
4
- version : 3.9.23 -beta+240816206
4
+ version : 3.9.24 -beta+240816207
5
5
6
6
environment :
7
7
sdk : " >=3.4.0 <4.0.0"
You can’t perform that action at this time.
0 commit comments