Skip to content

Commit

Permalink
fix: local tracks not working when there's a invalid music file in th…
Browse files Browse the repository at this point in the history
…e folder
  • Loading branch information
KRTirtho committed Apr 15, 2023
1 parent 28ff321 commit 5855820
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 2 additions & 0 deletions android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ if (keystorePropertiesFile.exists()) {
android {
compileSdkVersion 33

ndkVersion "21.4.7075529"

compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
Expand Down
8 changes: 3 additions & 5 deletions lib/components/library/user_local_tracks.dart
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,10 @@ final localTracksProvider = FutureProvider<List<LocalTrack>>((ref) async {
}

return {"metadata": metadata, "file": f, "art": imageFile.path};
} on FfiException catch (e) {
if (e.message != "NoTag: reader does not contain an id3 tag") {
rethrow;
}
return {};
} catch (e, stack) {
if (e is FfiException) {
return {};
}
Catcher.reportCheckedError(e, stack);
return {};
}
Expand Down

0 comments on commit 5855820

Please sign in to comment.