alexmercerind / flutter_media_metadata

A Flutter plugin to read 🔖 metadata of 🎵 media files. Supports Windows, Linux, macOS, Android, iOS & Web.
MIT License
70 stars 37 forks source link

getting null in trackName, trackArtistNames and all other data because folder name is 98º , so problem in folder name #37

Open fvthakor opened 10 months ago

fvthakor commented 10 months ago

Window 11 flutter app When I trying metadata of mp3 with 98º folder name then I am getting this 98º folder results {trackName: , trackArtistNames: [], albumName: , albumArt: , albumArtistName: , trackNumber: null, albumLength: null, year: 0, genre: null, authorName: null, writerName: , discNumber: null, mimeType: null, trackDuration: 0, bitrate: 0, filePath: D:\test_test\98º\Baarish Hai Jaanam - Stebin Ben 320 Kbps.mp3}

When I trying metadata of mp3 with other folder name then I am getting this other folder results

{trackName: Baarish Hai Jaanam - Stebin Ben, trackArtistNames: [Payal Dev, Stebin Ben, Raj Shekhar], albumName: Baarish Hai Jaanam - Stebin Ben, albumArt: Uint8List, albumArtistName: Payal Dev, Stebin Ben, Raj Shekhar, trackNumber: null, albumLength: null, year: 2023, genre: null, authorName: null, writerName: , discNumber: null, mimeType: null, trackDuration: 238210, bitrate: 320000, filePath: D:\test_test\#1 Martial Arts Movies\Baarish Hai Jaanam - Stebin Ben 320 Kbps.mp3}

hare is same mp3 file but folder are different

here is my code

var song = await MetadataRetriever.fromFile(File(path.toString()));
 print(song);

please help in my issue

Ri-car-do-1989 commented 6 months ago

I can confirm this problem. Also, I noticed another problem with naming. To clarify:

I tried looking at the source code, but the problem seems to be not in dart code, but in native C/C++ code. And I don't even know where to start in that C/C++ code to find the problem.

A test can be reproduced by doing the following: