mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-12 23:45:18 +00:00
fix: local tracks not working when there's a invalid music file in the folder
This commit is contained in:
parent
28ff3216ef
commit
5855820569
@ -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
|
||||
|
@ -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 {};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user